Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
haraschax committed Jun 7, 2024
1 parent 0de28e5 commit df65e6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion msgq/tests/test_poller.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ def test_multiple_messages(self):
if r is not None:
self.assertEqual(b'a'*i, r)

msg_seen = Truemes
msg_seen = True
i += 1

if r is None and msg_seen: # ZMQ sometimes receives nothing on the first receive
break

del pub
del sub
context.term()
Expand Down

0 comments on commit df65e6e

Please sign in to comment.