diff options
author | Moshe Atlow <moshe@atlow.co.il> | 2022-10-10 19:46:34 +0300 |
---|---|---|
committer | Danielle Adams <adamzdanielle@gmail.com> | 2022-10-11 16:10:13 +0300 |
commit | b9b671f25f9aa081655fb4656672c8d24c9910b5 (patch) | |
tree | d37f3a29ce34b32138435ed1a2a813ba520c1575 /test | |
parent | bc00f3bde14120714da3b0ce7d3efcf9abb1cba0 (diff) |
test: debug watch mode inspect
PR-URL: https://github.com/nodejs/node/pull/44861
Refs: https://github.com/nodejs/node/issues/44805
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Erick Wendel <erick.workspace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/sequential/test-watch-mode-inspect.mjs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/sequential/test-watch-mode-inspect.mjs b/test/sequential/test-watch-mode-inspect.mjs index 76eb77fa265..8981c8c24ca 100644 --- a/test/sequential/test-watch-mode-inspect.mjs +++ b/test/sequential/test-watch-mode-inspect.mjs @@ -12,7 +12,6 @@ if (common.isIBMi) common.skipIfInspectorDisabled(); describe('watch mode - inspect', () => { - const silentLogger = { log: () => {}, error: () => {} }; async function getDebuggedPid(instance, waitForLog = true) { const session = await instance.connectInspectorSession(); await session.send({ method: 'Runtime.enable' }); @@ -28,7 +27,7 @@ describe('watch mode - inspect', () => { it('should start debugger on inner process', async () => { const file = fixtures.path('watch-mode/inspect.js'); - const instance = new NodeInstance(['--inspect=0', '--watch'], undefined, file, silentLogger); + const instance = new NodeInstance(['--inspect=0', '--watch'], undefined, file); let stderr = ''; instance.on('stderr', (data) => { stderr += data; }); @@ -48,7 +47,7 @@ describe('watch mode - inspect', () => { it('should prevent attaching debugger with SIGUSR1 to outer process', { skip: common.isWindows }, async () => { const file = fixtures.path('watch-mode/inspect_with_signal.js'); - const instance = new NodeInstance(['--inspect-port=0', '--watch'], undefined, file, silentLogger); + const instance = new NodeInstance(['--inspect-port=0', '--watch'], undefined, file); let stderr = ''; instance.on('stderr', (data) => { stderr += data; }); |