mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests - Significant speed improvement at cost of CPU cycles
This commit is contained in:
parent
1e1bd32c42
commit
4b839f2c83
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue