summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.py b/tests/common.py
index 8c3be59..bea2e5c 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -27,7 +27,7 @@ def get_clock_granularity():
stamp2 = time.time()
resolution = min(resolution, stamp2 - stamp1)
time.sleep(0.01)
- return resolution
+ return max(1, 10 * resolution)
CLOCK_GRANULARITY = get_clock_granularity()
# When testing, we want to make sure that we don't sleep for too short a time