test: avoid cooldown retry flake in chat integration

This commit is contained in:
diegosouzapw
2026-04-18 02:18:23 -03:00
parent 738353a0e7
commit 857b692aac

View File

@@ -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 () => {