Skip to content

Commit c19f120

Browse files
authored
Sleep for flaky search test (#1680)
1 parent b6c1098 commit c19f120

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_search.py

+4
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,10 @@ def test_alias():
680680
# update alias and ensure new results
681681
ftindex2.aliasupdate("spaceballs")
682682
alias_client2 = getClient().ft("spaceballs")
683+
684+
if os.environ.get("GITHUB_WORKFLOW", None) is not None:
685+
time.sleep(5)
686+
683687
res = alias_client2.search("*").docs[0]
684688
assert "index2:yogurt" == res.id
685689

0 commit comments

Comments
 (0)