mirror of https://github.com/apache/lucene.git
SOLR-12727: Fix tests to work with 'interesting' entries in the hosts file like 'fe80::1%lo0 localhost'
This commit is contained in:
parent
f844461357
commit
15b36299c4
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue