SOLR-12727: Fix tests to work with 'interesting' entries in the hosts file like 'fe80::1%lo0 localhost'

This commit is contained in:
Erick Erickson 2018-12-14 07:42:57 -08:00
parent f844461357
commit 15b36299c4
1 changed files with 2 additions and 2 deletions

View File

@ -456,7 +456,7 @@ public class ZkTestServer {
}
public String getZkHost() {
return "localhost:" + zkServer.getLocalPort();
return "127.0.0.1:" + zkServer.getLocalPort();
}
public String getZkAddress() {
@ -471,7 +471,7 @@ public class ZkTestServer {
public String getZkAddress(String chroot) {
if (!chroot.startsWith("/"))
chroot = "/" + chroot;
return "localhost:" + zkServer.getLocalPort() + chroot;
return "127.0.0.1:" + zkServer.getLocalPort() + chroot;
}
/**