Skip to content

Commit c05d7ae

Browse files
committed
test: wait for reattach before initial break on run
1 parent cc96741 commit c05d7ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ 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(/Debugger attached\./))
46+
.then(() => cli.waitForPrompt())
4547
.then(() => cli.waitForInitialBreak())
4648
.then(() => cli.waitForPrompt())
4749
.then(() => {
@@ -72,6 +74,8 @@ const path = require('path');
7274
assert.match(cli.output, /Use `run` to start the app again/);
7375
})
7476
.then(() => cli.command('run'))
77+
.then(() => cli.waitFor(/Debugger attached\./))
78+
.then(() => cli.waitForPrompt())
7579
.then(() => cli.waitForInitialBreak())
7680
.then(() => cli.waitForPrompt())
7781
.then(() => {

0 commit comments

Comments
 (0)