From 96a67e2d4e6d075f4877a0c5cab44b3872bd148c Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 15 Feb 2026 19:35:44 +0900 Subject: [PATCH] fix(test): increase timeouts for CI-flaky polling tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - runner.test.ts: waitForEventProcessorShutdown timeout 50ms → 500ms (50ms was consistently too tight for CI runners) - tools.test.ts: MAX_POLL_TIME_MS 2000ms → 8000ms (polling timed out at ~2009ms on CI due to resource contention) --- src/cli/run/runner.test.ts | 2 +- src/tools/delegate-task/tools.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/run/runner.test.ts b/src/cli/run/runner.test.ts index 03f1b6e1..fdba48db 100644 --- a/src/cli/run/runner.test.ts +++ b/src/cli/run/runner.test.ts @@ -107,7 +107,7 @@ describe("waitForEventProcessorShutdown", () => { const eventProcessor = new Promise(() => {}) const spy = spyOn(console, "log").mockImplementation(() => {}) consoleLogSpy = spy - const timeoutMs = 50 + const timeoutMs = 500 const start = performance.now() try { diff --git a/src/tools/delegate-task/tools.test.ts b/src/tools/delegate-task/tools.test.ts index 858bf0ab..aa7a2985 100644 --- a/src/tools/delegate-task/tools.test.ts +++ b/src/tools/delegate-task/tools.test.ts @@ -45,7 +45,7 @@ describe("sisyphus-task", () => { STABILITY_POLLS_REQUIRED: 1, WAIT_FOR_SESSION_INTERVAL_MS: 10, WAIT_FOR_SESSION_TIMEOUT_MS: 1000, - MAX_POLL_TIME_MS: 2000, + MAX_POLL_TIME_MS: 8000, SESSION_CONTINUATION_STABILITY_MS: 50, }) cacheSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["anthropic", "google", "openai"])