Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b9b671f

Browse filesBrowse files
MoLowdanielleadams
authored andcommitted
test: debug watch mode inspect
PR-URL: #44861 Refs: #44805 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Erick Wendel <erick.workspace@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent bc00f3b commit b9b671f
Copy full SHA for b9b671f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Collapse file

‎test/sequential/test-watch-mode-inspect.mjs‎

Copy file name to clipboardExpand all lines: test/sequential/test-watch-mode-inspect.mjs
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ if (common.isIBMi)
1212
common.skipIfInspectorDisabled();
1313

1414
describe('watch mode - inspect', () => {
15-
const silentLogger = { log: () => {}, error: () => {} };
1615
async function getDebuggedPid(instance, waitForLog = true) {
1716
const session = await instance.connectInspectorSession();
1817
await session.send({ method: 'Runtime.enable' });
@@ -28,7 +27,7 @@ describe('watch mode - inspect', () => {
2827

2928
it('should start debugger on inner process', async () => {
3029
const file = fixtures.path('watch-mode/inspect.js');
31-
const instance = new NodeInstance(['--inspect=0', '--watch'], undefined, file, silentLogger);
30+
const instance = new NodeInstance(['--inspect=0', '--watch'], undefined, file);
3231
let stderr = '';
3332
instance.on('stderr', (data) => { stderr += data; });
3433

@@ -48,7 +47,7 @@ describe('watch mode - inspect', () => {
4847

4948
it('should prevent attaching debugger with SIGUSR1 to outer process', { skip: common.isWindows }, async () => {
5049
const file = fixtures.path('watch-mode/inspect_with_signal.js');
51-
const instance = new NodeInstance(['--inspect-port=0', '--watch'], undefined, file, silentLogger);
50+
const instance = new NodeInstance(['--inspect-port=0', '--watch'], undefined, file);
5251
let stderr = '';
5352
instance.on('stderr', (data) => { stderr += data; });
5453

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.