Skip to content

Commit

Permalink
Minor adjustment to reliability test
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Jul 16, 2016
1 parent e0f04f9 commit 6ea432f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amqpstorm/tests/functional/reliability_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def test_functional_publish_50k_messages(self):

# Let's give RabbitMQ a few seconds to catch up.
for _ in range(5):
time.sleep(0.5)
result = self.channel.queue.declare(queue=self.queue_name,
passive=True)
if self.messages_to_send == result['message_count']:
break
time.sleep(0.5)

self.assertEqual(result['message_count'], self.messages_to_send)

Expand Down

0 comments on commit 6ea432f

Please sign in to comment.