qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject [26/38] qpid-proton git commit: Replace localhost with 127.0.0.1 in interop tests
Date Sun, 05 Jul 2015 23:45:27 GMT
Replace localhost with 127.0.0.1 in interop tests

The test was proving unrealiable when localhost resolved to IPv6 ::1


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

Branch: refs/heads/master
Commit: 7115d0dfbda2a9130c03fc0171abe527ecc5f0c1
Parents: 1cbba24
Author: Dominic Evans <dominic.evans@uk.ibm.com>
Authored: Wed May 13 13:27:04 2015 +0100
Committer: Dominic Evans <dominic.evans@uk.ibm.com>
Committed: Wed May 13 13:27:04 2015 +0100

----------------------------------------------------------------------
 tests/python/proton_tests/reactor_interop.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/7115d0df/tests/python/proton_tests/reactor_interop.py
----------------------------------------------------------------------
diff --git a/tests/python/proton_tests/reactor_interop.py b/tests/python/proton_tests/reactor_interop.py
index cbb75e6..56a284f 100644
--- a/tests/python/proton_tests/reactor_interop.py
+++ b/tests/python/proton_tests/reactor_interop.py
@@ -49,7 +49,7 @@ class ReceiveHandler:
 
   def on_reactor_init(self, event):
     port = free_tcp_port()
-    self.acceptor = event.reactor.acceptor("localhost", port)
+    self.acceptor = event.reactor.acceptor("127.0.0.1", port)
     self.java_thread = JavaThread("send", port, self.count)
     self.java_thread.start()
 
@@ -116,7 +116,7 @@ class ReactorInteropTest(Test):
     # XXX: would be better to parse the stdout output for a message
     time.sleep(1)
 
-    sh = SendHandler('localhost:' + str(port), count)
+    sh = SendHandler('127.0.0.1:' + str(port), count)
     r = Reactor(sh)
     r.run()
 


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


Mime
View raw message