Merge "Disable connection pool in qpid interfaces tests"

This commit is contained in:
Jenkins 2014-06-20 10:20:18 +00:00 committed by Gerrit Code Review
commit 03e13b5878
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",