From 062bbca63d05ba8957b581462d328762c87b5975 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 1 Jun 2022 11:56:02 +0200 Subject: [PATCH] loosen poll test tolerance CI can be slow, such that 50ms or so might be missed All we are testing for is order of magnitude, so relax a bit --- zmq/tests/test_poll.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zmq/tests/test_poll.py b/zmq/tests/test_poll.py index 15c3a6de5..b0a18c74f 100644 --- a/zmq/tests/test_poll.py +++ b/zmq/tests/test_poll.py @@ -166,11 +166,11 @@ def test_timeout(self): tic = time.perf_counter() poller.poll(0.005) toc = time.perf_counter() - toc - tic < 0.1 + toc - tic < 0.5 tic = time.perf_counter() poller.poll(50) toc = time.perf_counter() - assert toc - tic < 0.1 + assert toc - tic < 0.5 assert toc - tic > 0.01 tic = time.perf_counter() poller.poll(500)