Skip to content

Commit a779261

Browse files
committed
test: fix flaky test-watch-mode-inspect
PR-URL: #47403 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 0fbfb28 commit a779261

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
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
constrestarts=stdout.filter((line)=>line==='safe to debug now').length;
64-
assert.strictEqual(stderr.match(/Debuggerlisteningonws:\/\//g).length,restarts);
65-
assert.strictEqual(newSet(pids).size,restarts+1);
65+
assert.ok(stderr.match(/Debuggerlisteningonws:\/\//g).length>=restarts);
66+
assert.ok(newSet(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)