diff --git a/test/parallel/test-worker-stdio.js b/test/parallel/test-worker-stdio.js index d4c008713bf918..82c2edad544e79 100644 --- a/test/parallel/test-worker-stdio.js +++ b/test/parallel/test-worker-stdio.js @@ -27,7 +27,7 @@ if (isMainThread) { const passed = new BufferingWritable(); const w = new Worker(__filename, { stdin: true, stdout: true }); - const source = fs.createReadStream(process.execPath); + const source = fs.createReadStream(process.execPath, { end: 1_000_000 }); source.pipe(w.stdin); source.pipe(original); w.stdout.pipe(passed);