You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2015/07/06 01:45:27 UTC
[26/38] qpid-proton git commit: Replace localhost with 127.0.0.1 in
interop tests
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 <do...@uk.ibm.com>
Authored: Wed May 13 13:27:04 2015 +0100
Committer: Dominic Evans <do...@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