Skip to content

Commit a912115

Browse files
authored
Update test/sequential/test-debugger-random-port-with-inspect-port.js
1 parent 7581012 commit a912115

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

test/sequential/test-debugger-random-port-with-inspect-port.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ const script = fixtures.path('debugger', 'three-lines.js');
1313
const cli = startCLI(['--inspect-port=0', script]);
1414

1515
(async () => {
16-
try {
17-
await cli.waitForInitialBreak();
18-
await cli.waitForPrompt();
19-
assert.match(cli.output, /debug>/, 'prints a prompt');
20-
assert.match(
21-
cli.output,
22-
/< Debugger listening on /,
23-
'forwards child output');
24-
const code = await cli.quit();
25-
assert.strictEqual(code, 0);
26-
}
16+
await cli.waitForInitialBreak();
17+
await cli.waitForPrompt();
18+
assert.match(cli.output, /debug>/, 'prints a prompt');
19+
assert.match(
20+
cli.output,
21+
/< Debugger listening on /,
22+
'forwards child output');
23+
const code = await cli.quit();
24+
assert.strictEqual(code, 0);
2725
})().then(common.mustCall());

0 commit comments

Comments
 (0)