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 GitHub committed 2026-03-25 21:22:41 +00:00
1 parent 583c479c9f
commit 9137925f60
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(() => {