test(strict-output): give the spool-prefix child time to finish before the pending stream times out

windows-free-tests failed on 9a7a7e54: the 150 ms shared deadline raced Bun
startup on Windows, so the child was killed mid-write and the spool held a
partial payload. Only the never-released extra stream should time out; the
child now has 3 s.
This commit is contained in:
garrytan committed 2026-09-30 21:07:08 +00:00
1 parent 9a7a7e5499
commit 73e3bae953
1 file changed
+1 -1
+1 -1
View File
@@ -223,7 +223,7 @@ test('a timed-out registered spool retains the complete byte prefix, never a pas
let release: (() => void) | undefined; let release: (() => void) | undefined;
try { try {
writeFileSync(source, `process.stdout.write(${JSON.stringify(payload)})`); writeFileSync(source, `process.stdout.write(${JSON.stringify(payload)})`);
const result = await runShardChild({ ...options, const result = await runShardChild({ ...options, timeoutMs: 3000,
args: [source], args: [source],
hookStreams: child => { hookStreams: child => {
const sink = { write: (chunk: Buffer | string) => { writeSync(fd, Buffer.from(chunk)); return true; } } as NodeJS.WriteStream; const sink = { write: (chunk: Buffer | string) => { writeSync(fd, Buffer.from(chunk)); return true; } } as NodeJS.WriteStream;