Commit 8f0a2b3c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

resiliencytest.suite: move wait time for replication out of the loop

(If it is to wait for replication to be effective, is there a need for it
to be done between each clone test?)
parent 87201274
...@@ -160,15 +160,16 @@ class ResiliencyTestSuite(object): ...@@ -160,15 +160,16 @@ class ResiliencyTestSuite(object):
# So first clone starts from 1. # So first clone starts from 1.
current_clone = 1 current_clone = 1
# Test each clone # Wait for XX minutes so that replication is done
while current_clone <= clone_count: self.logger.info(
# Wait for XX minutes so that replication is done 'Sleeping for %s seconds before testing clone %s.' % (
self.logger.info('Sleeping for %s seconds before testing clone %s.' % (
self.sleep_time_between_test, self.sleep_time_between_test,
current_clone current_clone
)) ))
time.sleep(self.sleep_time_between_test) time.sleep(self.sleep_time_between_test)
# Test each clone
while current_clone <= clone_count:
self._doTakeover(current_clone) self._doTakeover(current_clone)
self.logger.info('Testing %s%s instance.' % (self.namebase, current_clone)) self.logger.info('Testing %s%s instance.' % (self.namebase, current_clone))
success = self.checkDataOnCloneInstance() success = self.checkDataOnCloneInstance()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment