From 60f3a2a24420aae835c6ebb9cb65cdab30754104 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 17:34:06 +0000 Subject: [PATCH] perf(test): shorten bash tool timing fixtures --- 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 fa394fc41b8..ee0de5e7a58 100644 --- a/src/agents/bash-tools.test.ts +++ b/src/agents/bash-tools.test.ts @@ -11,9 +11,9 @@ const defaultShell = isWin ? undefined : 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 30" : "sleep 0.03"; -const longDelayCmd = isWin ? "Start-Sleep -Milliseconds 120" : "sleep 0.12"; +const shortDelayCmd = isWin ? "Start-Sleep -Milliseconds 4" : "sleep 0.004"; +const yieldDelayCmd = isWin ? "Start-Sleep -Milliseconds 16" : "sleep 0.016"; +const longDelayCmd = isWin ? "Start-Sleep -Milliseconds 96" : "sleep 0.096"; const POLL_INTERVAL_MS = 15; const TEST_EXEC_DEFAULTS = { security: "full" as const, ask: "off" as const }; const createTestExecTool = (