diff --git a/test/sequential/test-worker-prof.js b/test/sequential/test-worker-prof.js index 6e94be4a3d1fec..c2df47a8e8a121 100644 --- a/test/sequential/test-worker-prof.js +++ b/test/sequential/test-worker-prof.js @@ -23,7 +23,7 @@ if (process.argv[2] === 'child') { const fs = require('fs'); const { Worker, parentPort } = require('worker_threads'); parentPort.on('message', (m) => { - if (counter++ === 10) + if (counter++ === 1024) process.exit(0); parentPort.postMessage( fs.readFileSync(m.toString()).slice(0, 1024 * 1024)); @@ -73,7 +73,7 @@ if (process.argv[2] === 'child') { // Test that at least 15 ticks have been recorded for both parent and child // threads. When not tracking Worker threads, only 1 or 2 ticks would // have been recorded. - // When running locally on x64 Linux, this number is usually at least 200 + // When running locally, this number is usually around 200 // for both threads, so 15 seems like a very safe threshold. assert(ticks >= 15, `${ticks} >= 15`); }