Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

test: avoid cooldown retry flake in chat integration

diegosouzapw857b692aac35
diff --git a/tests/integration/chat-pipeline.test.ts b/tests/integration/chat-pipeline.test.ts
index 09a1cac952..3723cc9411 100644
--- a/tests/integration/chat-pipeline.test.ts
+++ b/tests/integration/chat-pipeline.test.ts
@@ -954,6 +954,10 @@ test("chat pipeline surfaces upstream 500 responses as structured errors", async
test("chat pipeline returns 429 with Retry-After when the upstream rate-limits the only account", async () => {
await seedConnection("openai", { apiKey: "sk-openai-429" });
+ await settingsDb.updateSettings({
+ requestRetry: 0,
+ maxRetryIntervalSec: 0,
+ });
let attempts = 0;
globalThis.fetch = async () => {