summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-11-09 13:25:31 +0200
committerGitHub <noreply@github.com>2021-11-09 13:25:31 +0200
commitc19f120e069ab805d2a337beaed3de064e5875f7 (patch)
tree032e93338ccd14017bfc8f8abf613c9c0999a8e3
parentb6c10985083d5d4ee7c66324096c68cc69598854 (diff)
downloadredis-py-c19f120e069ab805d2a337beaed3de064e5875f7.tar.gz
Sleep for flaky search test (#1680)
-rw-r--r--tests/test_search.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_search.py b/tests/test_search.py
index 926b5ff..7c9fdb2 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -680,6 +680,10 @@ def test_alias():
# update alias and ensure new results
ftindex2.aliasupdate("spaceballs")
alias_client2 = getClient().ft("spaceballs")
+
+ if os.environ.get("GITHUB_WORKFLOW", None) is not None:
+ time.sleep(5)
+
res = alias_client2.search("*").docs[0]
assert "index2:yogurt" == res.id