Skip to content

Commit 28b3e0e

Browse files
committed
test: wait for ok before initial break after restart
1 parent da92246 commit 28b3e0e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const path = require('path');
4242
assert.match(cli.output, /Use `run` to start the app again/);
4343
})
4444
.then(() => cli.command('run'))
45+
.then(() => cli.waitFor(/ ok\n/))
4546
.then(() => cli.waitForInitialBreak())
4647
.then(() => cli.waitForPrompt())
4748
.then(() => {
@@ -58,9 +59,9 @@ const path = require('path');
5859
);
5960
})
6061
.then(() => cli.command('restart'))
61-
.then(() => cli.waitFor(/Debugger attached\./))
62-
.then(() => cli.waitForPrompt())
62+
.then(() => cli.waitFor(/ ok\n/))
6363
.then(() => cli.waitForInitialBreak())
64+
.then(() => cli.waitForPrompt())
6465
.then(() => {
6566
assert.deepStrictEqual(
6667
cli.breakInfo,
@@ -74,6 +75,7 @@ const path = require('path');
7475
assert.match(cli.output, /Use `run` to start the app again/);
7576
})
7677
.then(() => cli.command('run'))
78+
.then(() => cli.waitFor(/ ok\n/))
7779
.then(() => cli.waitForInitialBreak())
7880
.then(() => cli.waitForPrompt())
7981
.then(() => {

0 commit comments

Comments
 (0)