From 73e3bae9537eb0bf0eb07943b2e6281a3c5251f1 Mon Sep 17 00:00:00 2001 From: garrytan Date: Wed, 30 Sep 2026 21:07:08 +0000 Subject: [PATCH] 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. --- test/strict-output-settlement.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/strict-output-settlement.test.ts b/test/strict-output-settlement.test.ts index ae563e307..2b1b9d1b6 100644 --- a/test/strict-output-settlement.test.ts +++ b/test/strict-output-settlement.test.ts @@ -223,7 +223,7 @@ test('a timed-out registered spool retains the complete byte prefix, never a pas let release: (() => void) | undefined; try { writeFileSync(source, `process.stdout.write(${JSON.stringify(payload)})`); - const result = await runShardChild({ ...options, + const result = await runShardChild({ ...options, timeoutMs: 3000, args: [source], hookStreams: child => { const sink = { write: (chunk: Buffer | string) => { writeSync(fd, Buffer.from(chunk)); return true; } } as NodeJS.WriteStream;