fix: resolve flaky test and JSON config validation

This commit is contained in:
2026-02-04 01:33:44 +00:00
parent 34e07f6b7e
commit bb07ac816f
2 changed files with 8 additions and 4 deletions

View File

@@ -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