Skip to content

Commit 8486728

Browse files
authored
Merge pull request #13511 from rabbitmq/fix-test-flakes-in-python_SUITE
Fix test flakes in `python_SUITE`
2 parents 38e7bd7 + 3372927 commit 8486728

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

deps/rabbitmq_stomp/test/python_SUITE_data/src/parsing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def test_bad_command(self):
182182
def test_broadcast(self):
183183
''' Single message should be delivered to two consumers:
184184
amq.topic --routing_key--> first_queue --> first_connection
185-
\--routing_key--> second_queue--> second_connection
185+
\\--routing_key--> second_queue--> second_connection
186186
'''
187187
subscribe=( 'SUBSCRIBE\n'
188188
'id: XsKNhAf\n'
@@ -336,4 +336,4 @@ def test_message_in_packets(self):
336336
modules = [
337337
__name__
338338
]
339-
test_runner.run_unittests(modules)
339+
test_runner.run_unittests(modules)

deps/rabbitmq_stomp/test/python_SUITE_data/src/x_queue_name.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_exchange_dest(self):
3636
body='Hello World!')
3737

3838
# check if we receive the message from the STOMP subscription
39-
self.assertTrue(self.listener.wait(2), "initial message not received")
39+
self.assertTrue(self.listener.wait(5), "initial message not received")
4040
self.assertEqual(1, len(self.listener.messages))
4141

4242
self.conn.disconnect()
@@ -64,7 +64,7 @@ def test_topic_dest(self):
6464
body='Hello World!')
6565

6666
# check if we receive the message from the STOMP subscription
67-
self.assertTrue(self.listener.wait(2), "initial message not received")
67+
self.assertTrue(self.listener.wait(5), "initial message not received")
6868
self.assertEqual(1, len(self.listener.messages))
6969

7070
self.conn.disconnect()
@@ -76,4 +76,4 @@ def test_topic_dest(self):
7676
modules = [
7777
__name__
7878
]
79-
test_runner.run_unittests(modules)
79+
test_runner.run_unittests(modules)

0 commit comments

Comments
 (0)