From ad6825c5e0a0dc72097a9b41c226b43d7583c68f Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Mon, 26 Jan 2026 16:40:53 -0800 Subject: [PATCH] test: increase Windows timeout delay for reliable CI --- src/agents/bash-tools.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agents/bash-tools.test.ts b/src/agents/bash-tools.test.ts index 6990d3a76..6cc20df53 100644 --- a/src/agents/bash-tools.test.ts +++ b/src/agents/bash-tools.test.ts @@ -11,7 +11,8 @@ const isWin = process.platform === "win32"; // PowerShell: Start-Sleep for delays, ; for command separation, $null for null device const shortDelayCmd = isWin ? "Start-Sleep -Milliseconds 50" : "sleep 0.05"; const yieldDelayCmd = isWin ? "Start-Sleep -Milliseconds 200" : "sleep 0.2"; -const longDelayCmd = isWin ? "Start-Sleep -Seconds 2" : "sleep 2"; +// Use longer delay on Windows for reliable timeout testing (Windows scheduling is less precise) +const longDelayCmd = isWin ? "Start-Sleep -Seconds 5" : "sleep 2"; // Both PowerShell and bash use ; for command separation const joinCommands = (commands: string[]) => commands.join("; "); const echoAfterDelay = (message: string) => joinCommands([shortDelayCmd, `echo ${message}`]);