Skip to content

Commit 4ed8992

Browse files
inoway46juanarbol
authored andcommitted
test: wait for ok before initial break after restart
Signed-off-by: inoway46 <inoueyuya416@gmail.com> PR-URL: #62807 Refs: #61762 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1060fba commit 4ed8992

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/parallel/test-debugger-run-after-quit-restart.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const path = require('path');
4747
assert.match(cli.output, /Use `run` to start the app again/);
4848
})
4949
.then(() => cli.command('run'))
50+
.then(() => cli.waitFor(/ ok\n/))
5051
.then(() => cli.waitForInitialBreak())
5152
.then(() => cli.waitForPrompt())
5253
.then(() => {
@@ -63,9 +64,9 @@ const path = require('path');
6364
);
6465
})
6566
.then(() => cli.command('restart'))
66-
.then(() => cli.waitFor(/Debugger attached\./))
67-
.then(() => cli.waitForPrompt())
67+
.then(() => cli.waitFor(/ ok\n/))
6868
.then(() => cli.waitForInitialBreak())
69+
.then(() => cli.waitForPrompt())
6970
.then(() => {
7071
assert.deepStrictEqual(
7172
cli.breakInfo,
@@ -79,6 +80,7 @@ const path = require('path');
7980
assert.match(cli.output, /Use `run` to start the app again/);
8081
})
8182
.then(() => cli.command('run'))
83+
.then(() => cli.waitFor(/ ok\n/))
8284
.then(() => cli.waitForInitialBreak())
8385
.then(() => cli.waitForPrompt())
8486
.then(() => {

0 commit comments

Comments
 (0)