Skip to content

Commit bfe5f1b

Browse files
committed
test: avoid flaky restart sync in debugger exceptions test
1 parent 6964b53 commit bfe5f1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-debugger-exceptions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const path = require('path');
2727
await cli.waitFor(/disconnect/);
2828

2929
// Next run: With `breakOnException` it pauses in both places.
30-
await cli.stepCommand('r');
30+
await cli.command('r');
3131
await cli.waitForInitialBreak();
3232
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
3333
await cli.command('breakOnException');
@@ -38,15 +38,15 @@ const path = require('path');
3838

3939
// Next run: With `breakOnUncaught` it only pauses on the 2nd exception.
4040
await cli.command('breakOnUncaught');
41-
await cli.stepCommand('r'); // Also, the setting survives the restart.
41+
await cli.command('r'); // Also, the setting survives the restart.
4242
await cli.waitForInitialBreak();
4343
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
4444
await cli.stepCommand('c');
4545
assert.ok(cli.output.includes(`exception in ${script}:9`));
4646

4747
// Next run: Back to the initial state! It should die again.
4848
await cli.command('breakOnNone');
49-
await cli.stepCommand('r');
49+
await cli.command('r');
5050
await cli.waitForInitialBreak();
5151
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
5252
await cli.command('c');

0 commit comments

Comments
 (0)