Skip to content

Commit 8eceaae

Browse files
MoLowRafaelGSS
authored andcommitted
test: fix flaky test-watch-mode-inspect
PR-URL: #47403 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 4405fc8 commit 8eceaae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/sequential/test-watch-mode-inspect.mjs

+3-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ describe('watch mode - inspect', () => {
6060

6161
// There should be a process per restart and one per parent process.
6262
// Message about Debugger should appear once per restart.
63+
// On some systems restart can happen multiple times.
6364
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);
6667
});
6768

6869
it('should prevent attaching debugger with SIGUSR1 to outer process', { skip: common.isWindows }, async () => {

0 commit comments

Comments
 (0)