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: spin longer on flaky platforms for test-worker-prof · nodejs/node@3bf42a5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/sequential
    • test-worker-prof.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/sequential/test-worker-prof.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-worker-prof.js
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ if (process.argv[2] === 'child') {
1616
console.log('parent prof file:', parentProf);
1717

1818
const { Worker } = require('worker_threads');
19+
let spinTime = 1500;
20+
if (common.isWindows || common.isMacOS || process.arch === 's390x') {
21+
// Windows and MacOS tend to be flaky in CI, s390x as well.
22+
// Give them more spins.
23+
spinTime = 4500;
24+
}
1925
const w = new Worker(`
2026
const { parentPort, workerData } = require('worker_threads');
2127
22-
const SPIN_MS = 1500;
28+
const SPIN_MS = ${spinTime};
2329
const start = Date.now();
2430
parentPort.on('message', (data) => {
2531
if (Date.now() - start < SPIN_MS) {

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.