test: use lightweight worker keepalive fixture (#109539)

This commit is contained in:
Peter Steinberger
2026-07-16 20:09:40 -07:00
committed by GitHub
parent 69b2916dd6
commit 994ecc2db9

View File

@@ -591,9 +591,13 @@ class FakeWorkerGateway {
const toolCallId = "local-exec-call";
const args = background
? {
command: `${JSON.stringify(process.execPath)} -e ${JSON.stringify(
"setInterval(() => undefined, 1000)",
)}`,
// POSIX sleep avoids Node startup; Windows keeps the portable Node fixture.
command:
process.platform === "win32"
? `${JSON.stringify(process.execPath)} -e ${JSON.stringify(
"setInterval(() => undefined, 1000)",
)}`
: "exec sleep 60",
background: true,
}
: { command: "printf worker-local > local-proof.txt" };