diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-09-01 17:08:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 17:08:59 +0300 |
commit | b6ecd0d6b7e6848dd085c3644ed31598fb1c9f83 (patch) | |
tree | d2c5e3b73acb74ea2436042f4b82f867eaf1939b | |
parent | da6e3524622c9e9862ac57de60d9f188e106b29d (diff) | |
download | redis-py-b6ecd0d6b7e6848dd085c3644ed31598fb1c9f83.tar.gz |
fixing timing issues in set pxat test (#1566)
closes #1561
-rw-r--r-- | tests/test_commands.py | 4 |
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): |