Skip to content

Commit 766ca19

Browse files
committed
python_SUITE: Wait for the AMQP connection to close in x_queue_name.py
[Why] I still don't know what causes the transient failures in this testsuite. The AMQP connection is closed asynchronously, therefore the next test case is running when it finishes to close. I have no idea if it causes troubles, but it makes the broker logs more difficult to read.
1 parent 350bda1 commit 766ca19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def test_exchange_dest(self):
4141

4242
self.conn.disconnect()
4343
connection.close()
44+
while not connection.is_closed:
45+
time.sleep(1)
4446

4547
def test_topic_dest(self):
4648
queueName='my-user-generated-queue-name-topic'
@@ -69,6 +71,8 @@ def test_topic_dest(self):
6971

7072
self.conn.disconnect()
7173
connection.close()
74+
while not connection.is_closed:
75+
time.sleep(1)
7276

7377

7478
if __name__ == '__main__':

0 commit comments

Comments
 (0)