Skip to content

Commit 2d59e81

Browse files
committed
Fix tests
1 parent 73d1eea commit 2d59e81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_caches.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def test_update_with_ttl(self):
461461
obj = VTTLCache(3)
462462

463463
obj.update({1: 1, 2: 2, 3: 3}, 0.5)
464-
time.sleep(0.5)
464+
time.sleep(0.501)
465465

466466
with pytest.raises(KeyError):
467467
obj[1]

tests/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def factorial(n: int, _: str):
9393
for num in range(2, n + 1):
9494
fact *= num
9595

96-
asyncio.sleep(0.1) # need for testing
96+
await asyncio.sleep(0.1) # need for testing
9797
return fact
9898

9999
perf_1 = time.perf_counter()

0 commit comments

Comments
 (0)