Disable connection pool in qpid interfaces tests

This change disables the connection pool in qpid interfaces tests to
ensure that each tests are isolated.

Closes bug: #1331459

Change-Id: Ib4a49be9f605dda5f2cbcbade3851345866e5797
This commit is contained in:
Mehdi Abaakouk 2014-06-18 17:17:06 +02:00
parent ebf3a2e765
commit e349c5e6f2
1 changed files with 7 additions and 0 deletions

View File

@ -482,6 +482,13 @@ class TestDriverInterface(_QpidBaseTestCase):
transport = messaging.get_transport(self.conf)
self.driver = transport._driver
original_get_connection = self.driver._get_connection
p = mock.patch.object(self.driver, '_get_connection',
side_effect=lambda pooled=True:
original_get_connection(False))
p.start()
self.addCleanup(p.stop)
def test_listen_and_direct_send(self):
target = messaging.Target(exchange="exchange_test",
topic="topic_test",