Skip to content

Commit

Permalink
Update test/sequential/test-debugger-random-port-with-inspect-port.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Sep 28, 2022
1 parent 7581012 commit a912115
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/sequential/test-debugger-random-port-with-inspect-port.js
Expand Up @@ -13,15 +13,13 @@ const script = fixtures.path('debugger', 'three-lines.js');
const cli = startCLI(['--inspect-port=0', script]);

(async () => {
try {
await cli.waitForInitialBreak();
await cli.waitForPrompt();
assert.match(cli.output, /debug>/, 'prints a prompt');
assert.match(
cli.output,
/< Debugger listening on /,
'forwards child output');
const code = await cli.quit();
assert.strictEqual(code, 0);
}
await cli.waitForInitialBreak();
await cli.waitForPrompt();
assert.match(cli.output, /debug>/, 'prints a prompt');
assert.match(
cli.output,
/< Debugger listening on /,
'forwards child output');
const code = await cli.quit();
assert.strictEqual(code, 0);
})().then(common.mustCall());

0 comments on commit a912115

Please sign in to comment.