From 994ecc2db98073ccbf9dfd421ecde2ad2f9a62e3 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 16 Jul 2026 20:09:40 -0700 Subject: [PATCH] test: use lightweight worker keepalive fixture (#109539) --- src/worker/worker.runtime.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/worker/worker.runtime.test.ts b/src/worker/worker.runtime.test.ts index ab1815a78b52..dc38fade04a1 100644 --- a/src/worker/worker.runtime.test.ts +++ b/src/worker/worker.runtime.test.ts @@ -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" };