[Neo-report] r1972 gregory - /trunk/neo/tests/functional/__init__.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 26 17:20:36 CET 2010


Author: gregory
Date: Fri Mar 26 17:20:35 2010
New Revision: 1972

Log:
Allow restart a test cluster with less storage nodes.

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] Fri Mar 26 17:20:35 2010
@@ -270,7 +270,10 @@
                 raise AssertionError, 'Timeout when starting cluster'
             storage_node_list = neoctl.getNodeList(
                 node_type=NodeTypes.STORAGE)
-            if len(storage_node_list) == target_count:
+            # wait at least number of started storages, admin node can know
+            # more nodes when the cluster restart with an existing partition
+            # table referencing non-running nodes
+            if len(storage_node_list) >= target_count:
                 break
             time.sleep(0.5)
         neoctl.enableStorageList([x[2] for x in storage_node_list])





More information about the Neo-report mailing list