From c19f120e069ab805d2a337beaed3de064e5875f7 Mon Sep 17 00:00:00 2001 From: Chayim Date: Tue, 9 Nov 2021 13:25:31 +0200 Subject: Sleep for flaky search test (#1680) --- tests/test_search.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 -- cgit v1.2.1