Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/parallel/test-debugger-restart-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ const startCLI = require('../common/debugger');
assert.strictEqual(cli.output.match(listeningRegExp).length, 1);

for (let i = 0; i < RESTARTS; i++) {
await cli.stepCommand('restart');
// For `restart`, sync on attach/prompt instead of BREAK_MESSAGE to avoid flaky races.
// https://github.com/nodejs/node/issues/61762
await cli.command('restart');
await cli.waitFor(/Debugger attached\./);
await cli.waitForPrompt();
assert.strictEqual(cli.output.match(listeningRegExp).length, 1);
}
} finally {
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-debugger-run-after-quit-restart.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const path = require('path');
{ filename: script, line: 2 },
);
})
.then(() => cli.stepCommand('restart'))
.then(() => cli.command('restart'))
.then(() => cli.waitForInitialBreak())
.then(() => {
assert.deepStrictEqual(
Expand Down