mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +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:
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue