mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 09:11:09 +00:00
test: use lightweight worker keepalive fixture (#109539)
This commit is contained in:
committed by
GitHub
parent
69b2916dd6
commit
994ecc2db9
@@ -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" };
|
||||
|
||||
Reference in New Issue
Block a user