Skip to content

Commit

Permalink
loosen poll test tolerance
Browse files Browse the repository at this point in the history
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
  • Loading branch information
minrk committed Jun 1, 2022
1 parent cffce9c commit 062bbca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zmq/tests/test_poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 062bbca

Please sign in to comment.