Tests - Significant speed improvement at cost of CPU cycles

This commit is contained in:
Renato Alves 2015-02-16 01:59:47 +00:00
parent 1e1bd32c42
commit 4b839f2c83

View file

@ -60,7 +60,9 @@ def wait_condition(cond, timeout=1):
if timeout is None:
timeout = 1
sleeptime = .1
# NOTE Increasing sleeptime can dramatically increase testsuite runtime
# It also reduces CPU load significantly
sleeptime = .01
if timeout < sleeptime:
print("Warning, timeout cannot be smaller than", sleeptime)