GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fix flaky test-watch-mode-inspect · nodejs/node@8eceaae

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/sequential
    • test-watch-mode-inspect.mjs
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.