Skip to content

Commit

Permalink
test: debug watch mode inspect
Browse files Browse the repository at this point in the history
PR-URL: #44861
Refs: #44805
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Erick Wendel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
MoLow authored and danielleadams committed Oct 11, 2022
1 parent bc00f3b commit b9b671f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/sequential/test-watch-mode-inspect.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand All @@ -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; });

Expand All @@ -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; });

Expand Down

0 comments on commit b9b671f

Please sign in to comment.