This commit is contained in:
Andras Schmelczer 2026-07-03 18:01:10 +01:00
parent c2070693fb
commit 909e241907
55 changed files with 594 additions and 223 deletions

View file

@ -73,7 +73,7 @@ def test_zero_rate_disables_limiting(monkeypatch):
def test_concurrent_acquires_are_all_spaced(monkeypatch):
# Real clock, tiny rate: N threads hitting acquire() at once must be
# serialised so the total wall time is at least (N-1) * interval.
rl = RateLimiter(200) # 5ms interval fast but measurable
rl = RateLimiter(200) # 5ms interval, fast but measurable
barrier = threading.Barrier(8)
def worker():