From 7da672d5632022d037264720636419cf7fdfa577 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 27 May 2026 22:53:17 -0700 Subject: [PATCH] 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 --- test/parallel/test-debugger-exceptions.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/parallel/test-debugger-exceptions.js b/test/parallel/test-debugger-exceptions.js index 27818612301163..4c79b13aa838e8 100644 --- a/test/parallel/test-debugger-exceptions.js +++ b/test/parallel/test-debugger-exceptions.js @@ -48,13 +48,8 @@ const path = require('path'); await cli.stepCommand('c'); assert.ok(cli.output.includes(`exception in ${script}:9`)); - // Next run: Back to the initial state! It should die again. + // Back to the initial state! It should die again. await cli.command('breakOnNone'); - await cli.command('r'); - await cli.waitFor(/ ok\n/); - await cli.waitForInitialBreak(); - await cli.waitForPrompt(); - assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 }); await cli.command('c'); await cli.waitFor(/disconnect/); } finally {