File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ if (process.argv[2] === 'child') {
23
23
const fs = require('fs');
24
24
const { Worker, parentPort } = require('worker_threads');
25
25
parentPort.on('message', (m) => {
26
- if (counter++ === 10 )
26
+ if (counter++ === 1024 )
27
27
process.exit(0);
28
28
parentPort.postMessage(
29
29
fs.readFileSync(m.toString()).slice(0, 1024 * 1024));
@@ -73,7 +73,7 @@ if (process.argv[2] === 'child') {
73
73
// Test that at least 15 ticks have been recorded for both parent and child
74
74
// threads. When not tracking Worker threads, only 1 or 2 ticks would
75
75
// have been recorded.
76
- // When running locally on x64 Linux , this number is usually at least 200
76
+ // When running locally, this number is usually around 200
77
77
// for both threads, so 15 seems like a very safe threshold.
78
78
assert ( ticks >= 15 , `${ ticks } >= 15` ) ;
79
79
}
You can’t perform that action at this time.
0 commit comments