Skip to content

Commit

Permalink
Merge pull request #1708 from minrk/poll-tolerance
Browse files Browse the repository at this point in the history
loosen poll test tolerance
  • Loading branch information
minrk authored Jun 1, 2022
2 parents f62d902 + 062bbca commit 206411c
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 206411c

Please sign in to comment.