diff --git a/core/llm/utils/retry.test.ts b/core/llm/utils/retry.test.ts index 665e010c1..ec383c582 100644 --- a/core/llm/utils/retry.test.ts +++ b/core/llm/utils/retry.test.ts @@ -450,8 +450,8 @@ describe("Retry Functionality", () => { expect(result).toBe("success"); // Should be capped at maxDelay (200ms) not header value (10000ms) - expect(delays[0]).toBeGreaterThan(190); - expect(delays[0]).toBeLessThan(210); + expect(delays[0]).toBeGreaterThanOrEqual(190); + expect(delays[0]).toBeLessThanOrEqual(200); }); it("should handle case-insensitive header names", async () => {