Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8eceaae

Browse filesBrowse files
MoLowRafaelGSS
authored andcommitted
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 4405fc8 commit 8eceaae
Copy full SHA for 8eceaae

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/sequential/test-watch-mode-inspect.mjs
+3-2Lines 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
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.