diff options
| author | Justin Ross <jross@apache.org> | 2013-05-02 10:20:00 +0000 |
|---|---|---|
| committer | Justin Ross <jross@apache.org> | 2013-05-02 10:20:00 +0000 |
| commit | 15b5809fa15bdf75ce1682e97b486c622e34c43c (patch) | |
| tree | 0aeb3723590f016b9f7843fe5166119944228b7f /python/qpid/tests/messaging | |
| parent | 9787079e94e54f918d27a58997f0e626d9f34c32 (diff) | |
| download | qpid-python-15b5809fa15bdf75ce1682e97b486c622e34c43c.tar.gz | |
QPID-4774: Honor reconnect_timeout in Connection; a patch from Ernie Allen
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1478313 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests/messaging')
| -rw-r--r-- | python/qpid/tests/messaging/endpoints.py | 10 |
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}' |
