| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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 { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,7 +57,7 @@ const path = require('path'); | |||
| 57 | 57 | { filename: script, line: 2 }, | |
| 58 | 58 | ); | |
| 59 | 59 | }) | |
| 60 | - .then(() => cli.stepCommand('restart')) | ||
| 60 | + .then(() => cli.command('restart')) | ||
| 61 | 61 | .then(() => cli.waitForInitialBreak()) | |
| 62 | 62 | .then(() => { | |
| 63 | 63 | assert.deepStrictEqual( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments