summaryrefslogtreecommitdiff
path: root/python/qpid/tests/messaging/endpoints.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/tests/messaging/endpoints.py')
-rw-r--r--python/qpid/tests/messaging/endpoints.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging/endpoints.py b/python/qpid/tests/messaging/endpoints.py
index cb924dc096..247d6e9a29 100644
--- a/python/qpid/tests/messaging/endpoints.py
+++ b/python/qpid/tests/messaging/endpoints.py
@@ -351,6 +351,16 @@ class TimeoutTests(Base):
def testConnectionClose(self):
self.timeoutTest(self.conn.close)
+ def testConnectionOpen(self):
+ options = self.connection_options()
+ options["reconnect"] = True
+ options["reconnect_timeout"] = self.delay()
+ try:
+ bad_conn = Connection.establish("badhostname", **options)
+ assert False, "did not time out"
+ except Timeout:
+ pass
+
ACK_QC = 'test-ack-queue; {create: always}'
ACK_QD = 'test-ack-queue; {delete: always}'