Skip to content

Commit

Permalink
run cluster refresh instead of sleeping between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirsky committed Dec 14, 2017
1 parent 909d4d7 commit 30cc9d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytest/base_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ class BaseSearchTestCase(ClusterModuleTestCase('../src/module-oss.so',
num_nodes=3, module_args=['PARTITIONS', 'AUTO'])):

def setUp(self):
time.sleep(1)
# Update all the nodes
self.client().execute_command('ft.clusterrefresh')
self.broadcast('ft.clusterrefresh')

self.flushdb()

def search(self, *args):
Expand Down

0 comments on commit 30cc9d0

Please sign in to comment.