Commit 51170e7e authored by Julien Muchembled's avatar Julien Muchembled

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.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2673 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ef477a10
......@@ -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 = []
......
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