We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3446cf3 commit 3bf42a5Copy full SHA for 3bf42a5
test/sequential/test-worker-prof.js
@@ -16,10 +16,16 @@ if (process.argv[2] === 'child') {
16
console.log('parent prof file:', parentProf);
17
18
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
+ }
25
const w = new Worker(`
26
const { parentPort, workerData } = require('worker_threads');
27
- const SPIN_MS = 1500;
28
+ const SPIN_MS = ${spinTime};
29
const start = Date.now();
30
parentPort.on('message', (data) => {
31
if (Date.now() - start < SPIN_MS) {
0 commit comments