Commit a7092792 authored by Benjamin Blanc's avatar Benjamin Blanc

testnode: ScalabilityTestRunner: Fix typo

parent 283859d2
...@@ -213,7 +213,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)) ...@@ -213,7 +213,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
and (max_time > (time.time()-start_time))): and (max_time > (time.time()-start_time))):
time.sleep(15) time.sleep(15)
if (time.time()-start_time) > max_time: if (time.time()-start_time) > max_time:
raise ErrorValue("Instance '%s' not '%s' after %s seconds" %(title, state)) raise ValueError("Instance '%s' not '%s' after %s seconds" %(title, state))
self.log("Instance correctly '%s' after %s seconds." %(state, str(time.time()-start_time))) self.log("Instance correctly '%s' after %s seconds." %(state, str(time.time()-start_time)))
def _waitInstanceCreation(self, title, max_time=MAX_CREATION_INSTANCE_TIME): def _waitInstanceCreation(self, title, max_time=MAX_CREATION_INSTANCE_TIME):
...@@ -226,7 +226,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)) ...@@ -226,7 +226,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
and (max_time > (time.time()-start_time)) ): and (max_time > (time.time()-start_time)) ):
time.sleep(5) time.sleep(5)
if (time.time()-start_time) > max_time: if (time.time()-start_time) > max_time:
raise ErrorValue("Instance '%s' not found after %s seconds" %(title, max_time)) raise ValueError("Instance '%s' not found after %s seconds" %(title, max_time))
self.log("Instance found on slapOSMaster") self.log("Instance found on slapOSMaster")
def prepareSlapOSForTestSuite(self, node_test_suite): def prepareSlapOSForTestSuite(self, node_test_suite):
......
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