Skip to content

Commit a1199ac

Browse files
committed
remove sleep
1 parent 8ffa50a commit a1199ac

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/test_search.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -646,11 +646,6 @@ def test_alias():
646646
index1.hset("index1:lonestar", mapping={"name": "lonestar"})
647647
index2.hset("index2:yogurt", mapping={"name": "yogurt"})
648648

649-
if os.environ.get("GITHUB_WORKFLOW", None) is not None:
650-
time.sleep(2)
651-
else:
652-
time.sleep(5)
653-
654649
def1 = IndexDefinition(prefix=["index1:"])
655650
def2 = IndexDefinition(prefix=["index2:"])
656651

@@ -659,12 +654,6 @@ def test_alias():
659654
ftindex1.create_index((TextField("name"),), definition=def1)
660655
ftindex2.create_index((TextField("name"),), definition=def2)
661656

662-
# CI is slower
663-
try:
664-
res = ftindex1.search("*").docs[0]
665-
except IndexError:
666-
time.sleep(5)
667-
res = ftindex1.search("*").docs[0]
668657
assert "index1:lonestar" == res.id
669658

670659
# create alias and check for results
@@ -681,9 +670,6 @@ def test_alias():
681670
ftindex2.aliasupdate("spaceballs")
682671
alias_client2 = getClient().ft("spaceballs")
683672

684-
if os.environ.get("GITHUB_WORKFLOW", None) is not None:
685-
time.sleep(5)
686-
687673
res = alias_client2.search("*").docs[0]
688674
assert "index2:yogurt" == res.id
689675

0 commit comments

Comments
 (0)