summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-09-01 17:08:59 +0300
committerGitHub <noreply@github.com>2021-09-01 17:08:59 +0300
commitb6ecd0d6b7e6848dd085c3644ed31598fb1c9f83 (patch)
treed2c5e3b73acb74ea2436042f4b82f867eaf1939b
parentda6e3524622c9e9862ac57de60d9f188e106b29d (diff)
downloadredis-py-b6ecd0d6b7e6848dd085c3644ed31598fb1c9f83.tar.gz
fixing timing issues in set pxat test (#1566)
closes #1561
-rw-r--r--tests/test_commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index fde1c01..24c528d 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -1087,9 +1087,9 @@ class TestRedisCommands:
@skip_if_server_version_lt('6.2.0')
def test_set_pxat_timedelta(self, r):
- expire_at = redis_server_time(r) + datetime.timedelta(seconds=10)
+ expire_at = redis_server_time(r) + datetime.timedelta(seconds=50)
assert r.set('a', '1', pxat=expire_at)
- assert 0 < r.ttl('a') <= 10
+ assert 0 < r.ttl('a') <= 100
@skip_if_server_version_lt('2.6.0')
def test_set_multipleoptions(self, r):