Merge pull request #13511 from rabbitmq/fix-test-flakes-in-python_SUITE

Fix test flakes in `python_SUITE`
This commit is contained in:
Jean-Sébastien Pédron 2025-03-13 12:52:31 +01:00 committed by GitHub
commit 8486728f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -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'

View File

@ -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()