Skip to content

Commit 26d4421

Browse files
committed
Widen allowed gap for TTL response from store
1 parent bdebfda commit 26d4421

File tree

1 file changed

+1
-1
lines changed
  • key-value/key-value-aio/tests/stores

1 file changed

+1
-1
lines changed

key-value/key-value-aio/tests/stores/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async def test_put_ttl_get_ttl(self, store: BaseStore):
174174

175175
assert value == {"test": "test"}
176176
assert ttl is not None
177-
assert ttl == IsFloat(approx=100), f"TTL should be ~100, but is {ttl}"
177+
assert ttl == IsFloat(approx=100, delta=2), f"TTL should be ~100, but is {ttl}"
178178

179179
async def test_negative_ttl(self, store: BaseStore):
180180
"""Tests that a negative ttl will return None when getting the key."""

0 commit comments

Comments
 (0)