Skip to content

Commit 0298b7f

Browse files
authored
test: debug watch mode inspect
PR-URL: #44861 Refs: #44805 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Erick Wendel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5c9ea8a commit 0298b7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
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)