summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBar Shaul <88437685+barshaul@users.noreply.github.com>2022-01-25 11:54:23 +0200
committerGitHub <noreply@github.com>2022-01-25 11:54:23 +0200
commit9f4bf4b018c9e5c46822cde4dc5db149e46ef1b1 (patch)
tree9c89a0e3cedfc67ca62668539510abb75248aaf0
parent039257613f523e6a30736f218ca2d37d2f12320f (diff)
downloadredis-py-9f4bf4b018c9e5c46822cde4dc5db149e46ef1b1.tar.gz
Increased pubsub's wait_for_messages timeout to prevent flaky tests (#1893)
-rw-r--r--tests/test_pubsub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_pubsub.py b/tests/test_pubsub.py
index 23af461..6456370 100644
--- a/tests/test_pubsub.py
+++ b/tests/test_pubsub.py
@@ -12,7 +12,7 @@ from redis.exceptions import ConnectionError
from .conftest import _get_client, skip_if_redis_enterprise, skip_if_server_version_lt
-def wait_for_message(pubsub, timeout=0.1, ignore_subscribe_messages=False):
+def wait_for_message(pubsub, timeout=0.5, ignore_subscribe_messages=False):
now = time.time()
timeout = now + timeout
while now < timeout: