mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 11:57:27 +00:00
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.
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user