ok
This commit is contained in:
parent
c2070693fb
commit
909e241907
55 changed files with 594 additions and 223 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue