| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3446cf3 commit 3bf42a5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,10 +16,16 @@ if (process.argv[2] === 'child') { | |||
| 16 | 16 | console.log('parent prof file:', parentProf); | |
| 17 | 17 | ||
| 18 | 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 | + } | ||
| 19 | 25 | const w = new Worker(` | |
| 20 | 26 | const { parentPort, workerData } = require('worker_threads'); | |
| 21 | 27 | ||
| 22 | - const SPIN_MS = 1500; | ||
| 28 | + const SPIN_MS = ${spinTime}; | ||
| 23 | 29 | const start = Date.now(); | |
| 24 | 30 | parentPort.on('message', (data) => { | |
| 25 | 31 | if (Date.now() - start < SPIN_MS) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments