Skip to content

Commit 7da672d

Browse files
committed
test: avoid restart in debugger exceptions test
The final restart is not needed to verify breakOnNone. The test is already paused on the uncaught exception, so continue from there and assert that the debugger disconnects. Refs: https://github.com/nodejs/node/actions/runs/26533911441/job/78157541700 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5
1 parent 4639dcb commit 7da672d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

test/parallel/test-debugger-exceptions.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,8 @@ const path = require('path');
4848
await cli.stepCommand('c');
4949
assert.ok(cli.output.includes(`exception in ${script}:9`));
5050

51-
// Next run: Back to the initial state! It should die again.
51+
// Back to the initial state! It should die again.
5252
await cli.command('breakOnNone');
53-
await cli.command('r');
54-
await cli.waitFor(/ ok\n/);
55-
await cli.waitForInitialBreak();
56-
await cli.waitForPrompt();
57-
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
5853
await cli.command('c');
5954
await cli.waitFor(/disconnect/);
6055
} finally {

0 commit comments

Comments
 (0)