@@ -25,7 +25,11 @@ const startCLI = require('../common/debugger');
|
25 | 25 | assert.strictEqual(cli.output.match(listeningRegExp).length, 1); |
26 | 26 | |
27 | 27 | for (let i = 0; i < RESTARTS; i++) { |
28 | | -await cli.stepCommand('restart'); |
| 28 | +// For `restart`, sync on attach/prompt instead of BREAK_MESSAGE to avoid flaky races. |
| 29 | +// https://github.com/nodejs/node/issues/61762 |
| 30 | +await cli.command('restart'); |
| 31 | +await cli.waitFor(/Debugger attached\./); |
| 32 | +await cli.waitForPrompt(); |
29 | 33 | assert.strictEqual(cli.output.match(listeningRegExp).length, 1); |
30 | 34 | } |
31 | 35 | } finally { |
|