fix: resolve flaky test and JSON config validation
This commit is contained in:
@@ -426,7 +426,8 @@ class TestSlidingWindowCounterAdvanced:
|
||||
allowed, _ = await algo.check("precision_key")
|
||||
assert not allowed
|
||||
|
||||
await asyncio.sleep(0.5)
|
||||
# Wait for the full window to pass to ensure tokens are fully replenished
|
||||
await asyncio.sleep(1.1)
|
||||
|
||||
allowed, _ = await algo.check("precision_key")
|
||||
assert allowed
|
||||
|
||||
Reference in New Issue
Block a user