diff options
| author | Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com> | 2021-08-05 11:51:20 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 11:51:20 +0300 |
| commit | ec89d30815f0ac69ef8c59630fe3cf8314a3782d (patch) | |
| tree | dbde4a07a11c7d1419486993d67d740036b7be15 | |
| parent | 2cfaac9949993386d9b2ac51cd676c709eb3d886 (diff) | |
| download | redis-py-ec89d30815f0ac69ef8c59630fe3cf8314a3782d.tar.gz | |
fix getex flaky tests
| -rw-r--r-- | tests/test_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 40c813d..c44d2cb 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -775,7 +775,7 @@ class TestRedisCommands: assert r.ttl('a') == 6 expire_at = redis_server_time(r) + datetime.timedelta(minutes=1) assert r.getex('a', pxat=expire_at) == b'1' - assert r.ttl('a') <= 60 + assert r.ttl('a') <= 61 assert r.getex('a', persist=True) == b'1' assert r.ttl('a') == -1 |
