Tests - Significant speed improvement at cost of CPU cycles
This commit is contained in:
@@ -60,7 +60,9 @@ def wait_condition(cond, timeout=1):
|
|||||||
if timeout is None:
|
if timeout is None:
|
||||||
timeout = 1
|
timeout = 1
|
||||||
|
|
||||||
sleeptime = .1
|
# NOTE Increasing sleeptime can dramatically increase testsuite runtime
|
||||||
|
# It also reduces CPU load significantly
|
||||||
|
sleeptime = .01
|
||||||
|
|
||||||
if timeout < sleeptime:
|
if timeout < sleeptime:
|
||||||
print("Warning, timeout cannot be smaller than", sleeptime)
|
print("Warning, timeout cannot be smaller than", sleeptime)
|
||||||
|
|||||||
Reference in New Issue
Block a user