mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 01:46:55 +02:00
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:
1 parent
9a7a7e5499
commit
73e3bae953
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user