Commit 03dff33c authored by Nicolas Wavrant's avatar Nicolas Wavrant

resiliencytestsuite: sleeping should happen before doing takeover, otherwise...

resiliencytestsuite: sleeping should happen before doing takeover, otherwise clone instances may not be ready
parent 3e9f78fd
......@@ -160,9 +160,6 @@ class ResiliencyTestSuite(object):
Private method.
Launch takeover and check for a specific clone.
"""
self._doTakeover(self.namebase, clone)
self.logger.info('Testing %s%s instance.' % (self.namebase, clone))
# Wait for XX minutes so that replication is done
self.logger.info(
'Sleeping for %s seconds before testing clone %s.' % (
......@@ -171,6 +168,9 @@ class ResiliencyTestSuite(object):
))
time.sleep(self.sleep_time_between_test)
self.logger.info('Testing %s%s instance.' % (self.namebase, clone))
self._doTakeover(self.namebase, clone)
if self.test_type == UNIT_TEST_ERP5TESTNODE: # Run by classical erp5testnode using slapproxy
# Run manually slapos node instance
# XXX hardcoded path
......
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