From c5904da85a4f1c5c6aa54913911a2bdc9df8b4cc Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 16:23:03 +0000 Subject: [PATCH] test: trim bash tool timing constants --- src/agents/bash-tools.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agents/bash-tools.test.ts b/src/agents/bash-tools.test.ts index 7eeb4b31a9b..9043eca18e7 100644 --- a/src/agents/bash-tools.test.ts +++ b/src/agents/bash-tools.test.ts @@ -12,8 +12,8 @@ const defaultShell = isWin : process.env.OPENCLAW_TEST_SHELL || resolveShellFromPath("bash") || process.env.SHELL || "sh"; // PowerShell: Start-Sleep for delays, ; for command separation, $null for null device const shortDelayCmd = isWin ? "Start-Sleep -Milliseconds 8" : "sleep 0.008"; -const yieldDelayCmd = isWin ? "Start-Sleep -Milliseconds 40" : "sleep 0.04"; -const longDelayCmd = isWin ? "Start-Sleep -Milliseconds 180" : "sleep 0.18"; +const yieldDelayCmd = isWin ? "Start-Sleep -Milliseconds 30" : "sleep 0.03"; +const longDelayCmd = isWin ? "Start-Sleep -Milliseconds 120" : "sleep 0.12"; const POLL_INTERVAL_MS = 15; const TEST_EXEC_DEFAULTS = { security: "full" as const, ask: "off" as const }; const createTestExecTool = ( @@ -149,7 +149,7 @@ describe("exec tool backgrounding", () => { }); it("uses default timeout when timeout is omitted", async () => { - const customBash = createTestExecTool({ timeoutSec: 0.1, backgroundMs: 10 }); + const customBash = createTestExecTool({ timeoutSec: 0.08, backgroundMs: 10 }); const customProcess = createProcessTool(); const result = await customBash.execute("call1", {