Merge "Be more explicit about emptying connection pool."
This commit is contained in:
commit
fe56d3c6ba
@ -186,7 +186,7 @@ class RpcQpidTestCase(test.TestCase):
|
|||||||
|
|
||||||
self.mocker.VerifyAll()
|
self.mocker.VerifyAll()
|
||||||
finally:
|
finally:
|
||||||
if rpc_amqp.ConnectionContext._connection_pool.free():
|
while rpc_amqp.ConnectionContext._connection_pool.free_items:
|
||||||
# Pull the mock connection object out of the connection pool so
|
# Pull the mock connection object out of the connection pool so
|
||||||
# that it doesn't mess up other test cases.
|
# that it doesn't mess up other test cases.
|
||||||
rpc_amqp.ConnectionContext._connection_pool.get()
|
rpc_amqp.ConnectionContext._connection_pool.get()
|
||||||
@ -261,7 +261,7 @@ class RpcQpidTestCase(test.TestCase):
|
|||||||
|
|
||||||
self.mocker.VerifyAll()
|
self.mocker.VerifyAll()
|
||||||
finally:
|
finally:
|
||||||
if rpc_amqp.ConnectionContext._connection_pool.free():
|
while rpc_amqp.ConnectionContext._connection_pool.free_items:
|
||||||
# Pull the mock connection object out of the connection pool so
|
# Pull the mock connection object out of the connection pool so
|
||||||
# that it doesn't mess up other test cases.
|
# that it doesn't mess up other test cases.
|
||||||
rpc_amqp.ConnectionContext._connection_pool.get()
|
rpc_amqp.ConnectionContext._connection_pool.get()
|
||||||
|
Loading…
Reference in New Issue
Block a user