Skip to content

Commit b690898

Browse files
committed
fixup! fixup! test: fix flaky test-worker-prof
1 parent d8596e7 commit b690898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sequential/test-worker-prof.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)