File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -646,11 +646,6 @@ def test_alias():
646
646
index1 .hset ("index1:lonestar" , mapping = {"name" : "lonestar" })
647
647
index2 .hset ("index2:yogurt" , mapping = {"name" : "yogurt" })
648
648
649
- if os .environ .get ("GITHUB_WORKFLOW" , None ) is not None :
650
- time .sleep (2 )
651
- else :
652
- time .sleep (5 )
653
-
654
649
def1 = IndexDefinition (prefix = ["index1:" ])
655
650
def2 = IndexDefinition (prefix = ["index2:" ])
656
651
@@ -659,12 +654,6 @@ def test_alias():
659
654
ftindex1 .create_index ((TextField ("name" ),), definition = def1 )
660
655
ftindex2 .create_index ((TextField ("name" ),), definition = def2 )
661
656
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 ]
668
657
assert "index1:lonestar" == res .id
669
658
670
659
# create alias and check for results
@@ -681,9 +670,6 @@ def test_alias():
681
670
ftindex2 .aliasupdate ("spaceballs" )
682
671
alias_client2 = getClient ().ft ("spaceballs" )
683
672
684
- if os .environ .get ("GITHUB_WORKFLOW" , None ) is not None :
685
- time .sleep (5 )
686
-
687
673
res = alias_client2 .search ("*" ).docs [0 ]
688
674
assert "index2:yogurt" == res .id
689
675
You can’t perform that action at this time.
0 commit comments