Skip to content

Commit

Permalink
improved testing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Jan 2, 2025
1 parent ea50901 commit 3ab4874
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def test_select_consumer_thread(self):
self.assertTrue(test_thread.is_consuming)
self.assertTrue(test_thread.channel.is_open)

test_thread.join(30)
test_thread.join()
while not test_thread.is_alive():
sleep(0.1)
self.assertFalse(test_thread.is_consuming)
self.assertTrue(test_thread.channel.is_closed or
test_thread.channel.is_closing)
Expand Down

0 comments on commit 3ab4874

Please sign in to comment.