From f520818d6c04c1ab504f6668d9992b32a39c5e7f Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Tue, 25 Jun 2019 16:34:09 +0930 Subject: [PATCH] TEST: Relax idle block test --- tests/test_idle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_idle.py b/tests/test_idle.py index 430e49fa0..b2eee7265 100644 --- a/tests/test_idle.py +++ b/tests/test_idle.py @@ -174,7 +174,11 @@ def _test_block(): idle.block(2) end = time.time() - assert (end - start) >= 2 + + # Be relaxed about precision - timing + # can sometimes be pretty sloppy when + # running in a docker container. + assert abs((end - start) < 2) < 0.05 if fslplatform.haveGui: assert called[0] -- GitLab