From 250896cf6e75a4d9a34b0b918c8264e0cd14c723 Mon Sep 17 00:00:00 2001 From: nabbilkhan Date: Mon, 16 Feb 2026 07:37:04 +0000 Subject: [PATCH] fix: correct contradictory test name (Greptile review) The test verifies that cooldownUntil IS cleared when it equals exactly `now` (>= comparison), but the test name said "does not clear". Fixed the name to match the actual assertion behavior. --- src/agents/auth-profiles/usage.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/auth-profiles/usage.test.ts b/src/agents/auth-profiles/usage.test.ts index 215fb9297a3..af45781813b 100644 --- a/src/agents/auth-profiles/usage.test.ts +++ b/src/agents/auth-profiles/usage.test.ts @@ -219,7 +219,7 @@ describe("clearExpiredCooldowns", () => { expect(store.usageStats?.["anthropic:default"]?.errorCount).toBe(0); }); - it("does not clear cooldownUntil that equals exactly `now`", () => { + it("clears cooldownUntil that equals exactly `now`", () => { const fixedNow = 1_700_000_000_000; const store = makeStore({ "anthropic:default": {