From 3a7bcb0aadd1bb78e6c8917edfdad95453dc0253 Mon Sep 17 00:00:00 2001 From: inoway46 Date: Sun, 19 Apr 2026 02:29:40 +0900 Subject: [PATCH] test: wait for ok before initial break after restart --- test/parallel/test-debugger-run-after-quit-restart.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-debugger-run-after-quit-restart.js b/test/parallel/test-debugger-run-after-quit-restart.js index 397c25cceaff65..d81d3890bcd655 100644 --- a/test/parallel/test-debugger-run-after-quit-restart.js +++ b/test/parallel/test-debugger-run-after-quit-restart.js @@ -42,6 +42,7 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/ ok\n/)) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => { @@ -58,9 +59,9 @@ const path = require('path'); ); }) .then(() => cli.command('restart')) - .then(() => cli.waitFor(/Debugger attached\./)) - .then(() => cli.waitForPrompt()) + .then(() => cli.waitFor(/ ok\n/)) .then(() => cli.waitForInitialBreak()) + .then(() => cli.waitForPrompt()) .then(() => { assert.deepStrictEqual( cli.breakInfo, @@ -74,6 +75,7 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/ ok\n/)) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => {