Repository: qpid-proton
Updated Branches:
  refs/heads/master a0585851e -> fd2119770


PROTON-1158 - Removed hardcoded port 12345 from MessengerSSLTests. Used 
free_tcp_ports() instead


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/fd211977
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/fd211977
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/fd211977

Branch: refs/heads/master
Commit: fd2119770102c4d7b18cb8003e3474148587f9ce
Parents: a058585
Author: Ganesh Murthy <gmur...@redhat.com>
Authored: Thu Mar 10 13:42:05 2016 -0500
Committer: Ganesh Murthy <gmur...@redhat.com>
Committed: Thu Mar 10 17:15:53 2016 -0500

----------------------------------------------------------------------
 tests/python/proton_tests/ssl.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/fd211977/tests/python/proton_tests/ssl.py
----------------------------------------------------------------------
diff --git a/tests/python/proton_tests/ssl.py b/tests/python/proton_tests/ssl.py
index 52ccd1f..03d1713 100644
--- a/tests/python/proton_tests/ssl.py
+++ b/tests/python/proton_tests/ssl.py
@@ -949,9 +949,10 @@ class MessengerSSLTests(common.Test):
         self.server.certificate = _testpath(cert)
         self.server.private_key = _testpath(key)
         self.server.password = password
+        port = common.free_tcp_ports()[0]
         try:
             self.server.start()
-            self.server.subscribe("amqps://~0.0.0.0:12345")
+            self.server.subscribe("amqps://~0.0.0.0:%s" % port)
             if exception is not None:
                 assert False, "expected failure did not occur"
         except MessengerException:
@@ -989,7 +990,8 @@ class MessengerSSLTests(common.Test):
             self.server.private_key = _testpath("client-private-key.pem")
             self.server.password = "client-password"
         self.server.start()
-        self.server.subscribe("amqps://~0.0.0.0:12345")
+        port = common.free_tcp_ports()[0]
+        self.server.subscribe("amqps://~0.0.0.0:%s" % port)
         self.server.incoming_window = 10
 
         self.client.trusted_certificates = _testpath(trusted)
@@ -1002,7 +1004,7 @@ class MessengerSSLTests(common.Test):
         self.server.recv()
 
         msg = Message()
-        msg.address = "amqps://127.0.0.1:12345"
+        msg.address = "amqps://127.0.0.1:%s" % port
         # make sure a large, uncompressible message body works!
         msg.body = "".join(random.choice(string.ascii_letters)
                            for x in range(10099))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to