[Neo-report] r2673 jm - /trunk/neo/tests/functional/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 21 11:54:15 CET 2011
Author: jm
Date: Mon Mar 21 11:54:15 2011
New Revision: 2673
Log:
tests: change default "ping" delay to 0.5s (instead of 1s) in expectXxx methods
State changes are detect earlier with lower values and speed the test suite.
However, this is a hack and too small values would waste CPU.
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] Mon Mar 21 11:54:15 2011
@@ -494,7 +494,7 @@ class NEOCluster(object):
current_try = None
return current_try
- def expectCondition(self, condition, timeout=0, delay=1, on_fail=None):
+ def expectCondition(self, condition, timeout=0, delay=.5, on_fail=None):
end = time.time() + timeout + DELAY_SAFETY_MARGIN
opaque = None
opaque_history = []
More information about the Neo-report
mailing list