test: specify expired auth cooldown reset · openclaw/openclaw@9dbae5c
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -349,8 +349,7 @@ describe("markAuthProfileFailure", () => {
|
349 | 349 | expect(stats?.failureCounts?.rate_limit).toBe(1); |
350 | 350 | const cooldownMs = (stats?.cooldownUntil ?? 0) - now; |
351 | 351 | // calculateAuthProfileCooldownMs(1) = 30_000 (stepped: 30s -> 1m -> 5m) |
352 | | -expect(cooldownMs).toBeLessThan(60_000); |
353 | | -expect(cooldownMs).toBeGreaterThan(0); |
| 352 | +expectCooldownInRange(cooldownMs, 25_000, 35_000); |
354 | 353 | }); |
355 | 354 | |
356 | 355 | it("does not persist cooldown windows for OpenRouter profiles", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。