[Neo-report] r2380 vincent - /trunk/neo/tests/functional/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Oct 30 14:55:51 CEST 2010
Author: vincent
Date: Sat Oct 30 14:55:51 2010
New Revision: 2380
Log:
Make sure this loop is executed at least once.
Modified:
trunk/neo/tests/functional/__init__.py
Modified: trunk/neo/tests/functional/__init__.py
==============================================================================
--- trunk/neo/tests/functional/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/functional/__init__.py [iso-8859-1] Sat Oct 30 14:55:51 2010
@@ -294,8 +294,6 @@ class NEOCluster(object):
target_count = len(self.db_list) - len(except_storages)
end_time = time.time() + MAX_START_TIME
while True:
- if time.time() > end_time:
- raise AssertionError, 'Timeout when starting cluster'
storage_node_list = neoctl.getNodeList(
node_type=NodeTypes.STORAGE)
# wait at least number of started storages, admin node can know
@@ -304,6 +302,8 @@ class NEOCluster(object):
if len(storage_node_list) >= target_count:
break
time.sleep(0.5)
+ if time.time() > end_time:
+ raise AssertionError, 'Timeout when starting cluster'
neoctl.enableStorageList([x[2] for x in storage_node_list])
def stop(self):
More information about the Neo-report
mailing list