Skip to content

Commit b6ecd0d

Browse files
authored
fixing timing issues in set pxat test (#1566)
closes #1561
1 parent da6e352 commit b6ecd0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,9 +1087,9 @@ def test_set_exat_timedelta(self, r):
10871087

10881088
@skip_if_server_version_lt('6.2.0')
10891089
def test_set_pxat_timedelta(self, r):
1090-
expire_at = redis_server_time(r) + datetime.timedelta(seconds=10)
1090+
expire_at = redis_server_time(r) + datetime.timedelta(seconds=50)
10911091
assert r.set('a', '1', pxat=expire_at)
1092-
assert 0 < r.ttl('a') <= 10
1092+
assert 0 < r.ttl('a') <= 100
10931093

10941094
@skip_if_server_version_lt('2.6.0')
10951095
def test_set_multipleoptions(self, r):

0 commit comments

Comments
 (0)