From bf18b8bba279879a37637f07c5fa52cac0416d1c Mon Sep 17 00:00:00 2001 From: anandgupta42 <93243293+anandgupta42@users.noreply.github.com> Date: Tue, 8 Sep 2026 01:00:44 -0700 Subject: [PATCH] test(provider): expect the 300 s Altimate Base header timeout set by #1260 #1260 raised FREE_TIER_HEADER_TIMEOUT_DEFAULT to 300_000 (the SSE chunk watchdog's 5 minutes, env-overridable) because the gateway can queue, cold-start or reason before flushing headers, but left the provider contract test asserting OpenAI's 10_000. main's TypeScript job has been red since. Closes #1264 Co-Authored-By: Claude Fable 5.1 --- packages/opencode/test/provider/provider.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/opencode/test/provider/provider.test.ts b/packages/opencode/test/provider/provider.test.ts index 1cb1537a7..3e7a01645 100644 --- a/packages/opencode/test/provider/provider.test.ts +++ b/packages/opencode/test/provider/provider.test.ts @@ -81,8 +81,11 @@ test("Altimate Base is pinned to the hosted model contract without affecting oth expect(base.options.baseURL).toBe(`${ALTIMATE_BASE_GATEWAY_URL}/v1`) expect(base.options.apiKey).toBe(FreeTier.MANAGED_API_KEY_PLACEHOLDER) // BUG FIX: without a client-side header timeout, a hung gateway response never resolves - // or rejects — the CLI just hangs. This mirrors the openai loader's default. - expect(base.options.headerTimeout).toBe(10_000) + // or rejects — the CLI just hangs. The value is NOT the openai loader's 10s: Altimate + // Base can queue for capacity, cold-start, or reason before flushing headers, so #1260 + // set FREE_TIER_HEADER_TIMEOUT_DEFAULT to the SSE chunk watchdog's 5 minutes (env + // ALTIMATE_BASE_HEADER_TIMEOUT_MS overrides it; not set in this test). + expect(base.options.headerTimeout).toBe(300_000) expect(JSON.stringify(base)).not.toContain("sk-altimate-base") const model = base.models[FreeTier.MODEL_ID]