| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a39cd45 commit 007b2fa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ if (!common.isMainThread) | |||
| 15 | 15 | if (process.argv[2] === 'child') { | |
| 16 | 16 | const spin = ` | |
| 17 | 17 | const start = Date.now(); | |
| 18 | - while (Date.now() - start < 200); | ||
| 18 | + while (Date.now() - start < 1000); | ||
| 19 | 19 | `; | |
| 20 | 20 | new Worker(spin, { eval: true }); | |
| 21 | 21 | eval(spin); | |
@@ -32,10 +32,10 @@ for (const logfile of logfiles) { | |||
| 32 | 32 | const lines = fs.readFileSync(logfile, 'utf8').split('\n'); | |
| 33 | 33 | const ticks = lines.filter((line) => /^tick,/.test(line)).length; | |
| 34 | 34 | ||
| 35 | - // Test that at least 20 ticks have been recorded for both parent and child | ||
| 35 | + // Test that at least 15 ticks have been recorded for both parent and child | ||
| 36 | 36 | // threads. When not tracking Worker threads, only 1 or 2 ticks would | |
| 37 | 37 | // have been recorded. | |
| 38 | - // When running locally on x64 Linux, this number is usually at least 150 | ||
| 38 | + // When running locally on x64 Linux, this number is usually at least 700 | ||
| 39 | 39 | // for both threads, so 15 seems like a very safe threshold. | |
| 40 | 40 | assert(ticks >= 15, `${ticks} >= 15`); | |
| 41 | 41 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments