You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(rate_limit): regression guard for stale window on re-register
Two direct unit tests on Hub.check_rate_limit (no live server needed):
1. `test_rate_window_cleared_on_unregister` — verifies 5 consecutive
requests pass after re-registration at 10/min (was blocked at 1/min
without the fix).
2. `test_rate_window_stale_without_clear` — regression sentinel:
deliberately skips the _rate_windows.pop to document and
mutation-verify the original bug (stale 1/min window blocks 2nd
request under a 100/min manifest). Asserts the expected wrong
behaviour so a revert makes this test fail.
286 pass (was 284), ruff clean.
0 commit comments