Merge pull request #13511 from rabbitmq/fix-test-flakes-in-python_SUITE
Fix test flakes in `python_SUITE`
This commit is contained in:
commit
8486728f85
|
@ -182,7 +182,7 @@ class TestParsing(unittest.TestCase):
|
|||
def test_broadcast(self):
|
||||
''' Single message should be delivered to two consumers:
|
||||
amq.topic --routing_key--> first_queue --> first_connection
|
||||
\--routing_key--> second_queue--> second_connection
|
||||
\\--routing_key--> second_queue--> second_connection
|
||||
'''
|
||||
subscribe=( 'SUBSCRIBE\n'
|
||||
'id: XsKNhAf\n'
|
||||
|
|
|
@ -36,7 +36,7 @@ class TestUserGeneratedQueueName(base.BaseTest):
|
|||
body='Hello World!')
|
||||
|
||||
# check if we receive the message from the STOMP subscription
|
||||
self.assertTrue(self.listener.wait(2), "initial message not received")
|
||||
self.assertTrue(self.listener.wait(5), "initial message not received")
|
||||
self.assertEqual(1, len(self.listener.messages))
|
||||
|
||||
self.conn.disconnect()
|
||||
|
@ -64,7 +64,7 @@ class TestUserGeneratedQueueName(base.BaseTest):
|
|||
body='Hello World!')
|
||||
|
||||
# check if we receive the message from the STOMP subscription
|
||||
self.assertTrue(self.listener.wait(2), "initial message not received")
|
||||
self.assertTrue(self.listener.wait(5), "initial message not received")
|
||||
self.assertEqual(1, len(self.listener.messages))
|
||||
|
||||
self.conn.disconnect()
|
||||
|
|
Loading…
Reference in New Issue