From c05d7ae3d2b319c7616c5bffd87455f223b3b276 Mon Sep 17 00:00:00 2001 From: inoway46 Date: Sun, 29 Mar 2026 13:20:27 +0900 Subject: [PATCH] test: wait for reattach before initial break on run --- test/parallel/test-debugger-run-after-quit-restart.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/parallel/test-debugger-run-after-quit-restart.js b/test/parallel/test-debugger-run-after-quit-restart.js index e5f6f86e53750c..39d80322dfaafb 100644 --- a/test/parallel/test-debugger-run-after-quit-restart.js +++ b/test/parallel/test-debugger-run-after-quit-restart.js @@ -42,6 +42,8 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/Debugger attached\./)) + .then(() => cli.waitForPrompt()) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => { @@ -72,6 +74,8 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/Debugger attached\./)) + .then(() => cli.waitForPrompt()) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => {