test: avoid flaky run wait in debugger restart test

PR-URL: https://github.com/nodejs/node/pull/62112
Refs: https://github.com/nodejs/node/issues/61762
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Yuya Inoue authored and Antoine du Hamel committed 2026-03-30 17:20:27 +02:00
1 parent 64cfa5a6fa
commit 1b9d8d3eec
1 file changed
+2 -2
@@ -41,7 +41,7 @@ const path = require('path');
.then(() => {
assert.match(cli.output, /Use `run` to start the app again/);
})
.then(() => cli.stepCommand('run'))
.then(() => cli.command('run'))
.then(() => cli.waitForInitialBreak())
.then(() => cli.waitForPrompt())
.then(() => {
@@ -71,7 +71,7 @@ const path = require('path');
.then(() => {
assert.match(cli.output, /Use `run` to start the app again/);
})
.then(() => cli.stepCommand('run'))
.then(() => cli.command('run'))
.then(() => cli.waitForInitialBreak())
.then(() => cli.waitForPrompt())
.then(() => {