| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4405fc8 commit 8eceaae
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,9 +60,10 @@ describe('watch mode - inspect', () => { | |||
| 60 | 60 | ||
| 61 | 61 | // There should be a process per restart and one per parent process. | |
| 62 | 62 | // Message about Debugger should appear once per restart. | |
| 63 | + // On some systems restart can happen multiple times. | ||
| 63 | 64 | const restarts = stdout.filter((line) => line === 'safe to debug now').length; | |
| 64 | - assert.strictEqual(stderr.match(/Debugger listening on ws:\/\//g).length, restarts); | ||
| 65 | - assert.strictEqual(new Set(pids).size, restarts + 1); | ||
| 65 | + assert.ok(stderr.match(/Debugger listening on ws:\/\//g).length >= restarts); | ||
| 66 | + assert.ok(new Set(pids).size >= restarts + 1); | ||
| 66 | 67 | }); | |
| 67 | 68 | ||
| 68 | 69 | it('should prevent attaching debugger with SIGUSR1 to outer process', { skip: common.isWindows }, async () => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments