1111import base
1212import time
1313import os
14+ import test_util
1415
1516class TestUserGeneratedQueueName (base .BaseTest ):
1617
@@ -29,6 +30,12 @@ def test_exchange_dest(self):
2930 pika .ConnectionParameters ( host = '127.0.0.1' , port = int (os .environ ["AMQP_PORT" ])))
3031 channel = connection .channel ()
3132
33+ test_util .rabbitmqctl (['list_queues' ])
34+ test_util .rabbitmqctl (['list_connections' , 'peer_host' , 'peer_port' ,
35+ 'protocol' ])
36+ test_util .rabbitmqctl (['list_stomp_connections' , 'peer_host' ,
37+ 'peer_port' , 'protocol' ])
38+
3239 # publish a message to the named queue
3340 channel .basic_publish (
3441 exchange = '' ,
@@ -39,7 +46,7 @@ def test_exchange_dest(self):
3946 self .assertTrue (self .listener .wait (30 ), "initial message not received" )
4047 self .assertEqual (1 , len (self .listener .messages ))
4148
42- self .conn .disconnect ()
49+ # self.conn.disconnect()
4350 connection .close ()
4451 while not connection .is_closed :
4552 time .sleep (1 )
@@ -59,6 +66,12 @@ def test_topic_dest(self):
5966 pika .ConnectionParameters ( host = '127.0.0.1' , port = int (os .environ ["AMQP_PORT" ])))
6067 channel = connection .channel ()
6168
69+ test_util .rabbitmqctl (['list_queues' ])
70+ test_util .rabbitmqctl (['list_connections' , 'peer_host' , 'peer_port' ,
71+ 'protocol' ])
72+ test_util .rabbitmqctl (['list_stomp_connections' , 'peer_host' ,
73+ 'peer_port' , 'protocol' ])
74+
6275 # publish a message to the named queue
6376 channel .basic_publish (
6477 exchange = '' ,
@@ -69,7 +82,7 @@ def test_topic_dest(self):
6982 self .assertTrue (self .listener .wait (30 ), "initial message not received" )
7083 self .assertEqual (1 , len (self .listener .messages ))
7184
72- self .conn .disconnect ()
85+ # self.conn.disconnect()
7386 connection .close ()
7487 while not connection .is_closed :
7588 time .sleep (1 )
0 commit comments