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 bed89b0

Browse filesBrowse files
inoway46aduh95
authored andcommitted
test: wait for reattach before initial break on restart
PR-URL: #62471 Refs: #61762 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
1 parent c9ffffc commit bed89b0
Copy full SHA for bed89b0

2 files changed

+4Lines changed: 4 additions & 0 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-preserve-breaks.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-debugger-preserve-breaks.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const script = path.relative(process.cwd(), scriptFullPath);
2929
await cli.stepCommand('c'); // hit line 3
3030
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 3 });
3131
await cli.command('restart');
32+
await cli.waitFor(/Debugger attached\./);
33+
await cli.waitForPrompt();
3234
await cli.waitForInitialBreak();
3335
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
3436
await cli.stepCommand('c');
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
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ const path = require('path');
5858
);
5959
})
6060
.then(() => cli.command('restart'))
61+
.then(() => cli.waitFor(/Debugger attached\./))
62+
.then(() => cli.waitForPrompt())
6163
.then(() => cli.waitForInitialBreak())
6264
.then(() => {
6365
assert.deepStrictEqual(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.