From 4b839f2c8322adac75f1eff183c48fc432eba2c6 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Mon, 16 Feb 2015 01:59:47 +0000 Subject: [PATCH] Tests - Significant speed improvement at cost of CPU cycles --- test/basetest/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/basetest/utils.py b/test/basetest/utils.py index 6f93640d5..8458268f8 100644 --- a/test/basetest/utils.py +++ b/test/basetest/utils.py @@ -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)