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):
|
def test_broadcast(self):
|
||||||
''' Single message should be delivered to two consumers:
|
''' Single message should be delivered to two consumers:
|
||||||
amq.topic --routing_key--> first_queue --> first_connection
|
amq.topic --routing_key--> first_queue --> first_connection
|
||||||
\--routing_key--> second_queue--> second_connection
|
\\--routing_key--> second_queue--> second_connection
|
||||||
'''
|
'''
|
||||||
subscribe=( 'SUBSCRIBE\n'
|
subscribe=( 'SUBSCRIBE\n'
|
||||||
'id: XsKNhAf\n'
|
'id: XsKNhAf\n'
|
||||||
|
@ -336,4 +336,4 @@ if __name__ == '__main__':
|
||||||
modules = [
|
modules = [
|
||||||
__name__
|
__name__
|
||||||
]
|
]
|
||||||
test_runner.run_unittests(modules)
|
test_runner.run_unittests(modules)
|
||||||
|
|
|
@ -36,7 +36,7 @@ class TestUserGeneratedQueueName(base.BaseTest):
|
||||||
body='Hello World!')
|
body='Hello World!')
|
||||||
|
|
||||||
# check if we receive the message from the STOMP subscription
|
# 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.assertEqual(1, len(self.listener.messages))
|
||||||
|
|
||||||
self.conn.disconnect()
|
self.conn.disconnect()
|
||||||
|
@ -64,7 +64,7 @@ class TestUserGeneratedQueueName(base.BaseTest):
|
||||||
body='Hello World!')
|
body='Hello World!')
|
||||||
|
|
||||||
# check if we receive the message from the STOMP subscription
|
# 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.assertEqual(1, len(self.listener.messages))
|
||||||
|
|
||||||
self.conn.disconnect()
|
self.conn.disconnect()
|
||||||
|
@ -76,4 +76,4 @@ if __name__ == '__main__':
|
||||||
modules = [
|
modules = [
|
||||||
__name__
|
__name__
|
||||||
]
|
]
|
||||||
test_runner.run_unittests(modules)
|
test_runner.run_unittests(modules)
|
||||||
|
|
Loading…
Reference in New Issue