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') {
2323 const fs = require('fs');
2424 const { Worker, parentPort } = require('worker_threads');
2525 parentPort.on('message', (m) => {
26- if (counter++ === 10 )
26+ if (counter++ === 1024 )
2727 process.exit(0);
2828 parentPort.postMessage(
2929 fs.readFileSync(m.toString()).slice(0, 1024 * 1024));
@@ -73,7 +73,7 @@ if (process.argv[2] === 'child') {
7373 // Test that at least 15 ticks have been recorded for both parent and child
7474 // threads. When not tracking Worker threads, only 1 or 2 ticks would
7575 // 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
7777 // for both threads, so 15 seems like a very safe threshold.
7878 assert ( ticks >= 15 , `${ ticks } >= 15` ) ;
7979 }
You can’t perform that action at this time.
0 commit comments