Repository: qpid-proton Updated Branches: refs/heads/proton-j-reactor 1cbba24d6 -> 7115d0dfb
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/proton-j-reactor Commit: 7115d0dfbda2a9130c03fc0171abe527ecc5f0c1 Parents: 1cbba24 Author: Dominic Evans <[email protected]> Authored: Wed May 13 13:27:04 2015 +0100 Committer: Dominic Evans <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
