Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 362644a

Browse filesBrowse files
inoway46sxa
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 26f677c commit 362644a
Copy full SHA for 362644a

1 file changed

+4-2Lines changed: 4 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-debugger-run-after-quit-restart.js
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.