summaryrefslogtreecommitdiff
path: root/cpp/src/tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-09-04 19:01:18 +0000
committerAlan Conway <aconway@apache.org>2013-09-04 19:01:18 +0000
commit4f40bc6a7d6b89c74ebb1e40cb97b3aa8e41668c (patch)
tree0269426d6f533d35bb7232a17719e342be87fd0c /cpp/src/tests
parent4375c7091859f68b2cecc8b655dfc593af14bff7 (diff)
downloadqpid-python-4f40bc6a7d6b89c74ebb1e40cb97b3aa8e41668c.tar.gz
NO-JIRA: HA minor fixes to test framework & comments.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1520108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests')
-rw-r--r--cpp/src/tests/brokertest.py2
-rwxr-xr-xcpp/src/tests/ha_test.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/tests/brokertest.py b/cpp/src/tests/brokertest.py
index a282f59b13..ba6c259a26 100644
--- a/cpp/src/tests/brokertest.py
+++ b/cpp/src/tests/brokertest.py
@@ -370,7 +370,7 @@ class Broker(Popen):
deadline = time.time()+timeout
while True:
try:
- c = self.connect(**kwargs)
+ c = self.connect(timeout=timeout, **kwargs)
try:
c.session()
return # All good
diff --git a/cpp/src/tests/ha_test.py b/cpp/src/tests/ha_test.py
index 4a7b538edd..5f21b8f8a4 100755
--- a/cpp/src/tests/ha_test.py
+++ b/cpp/src/tests/ha_test.py
@@ -271,8 +271,10 @@ acl allow all all
try: return self.connect()
except ConnectionError: return None
- def ready(self):
- return Broker.ready(self, client_properties={"qpid.ha-admin":1})
+ def ready(self, *args, **kwargs):
+ if not 'client_properties' in kwargs: kwargs['client_properties'] = {}
+ kwargs['client_properties']['qpid.ha-admin'] = True
+ return Broker.ready(self, *args, **kwargs)
def kill(self, final=True):
if final: self.ha_port.stop()