HBASE-12954 Addendum uses invalid TLD in test

This commit is contained in:
tedyu 2015-04-01 11:20:16 -07:00
parent 7314645972
commit 39b5ce9470
1 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class TestRegionServerHostname {
public void testInvalidRegionServerHostnameAbortsServer() throws Exception {
final int NUM_MASTERS = 1;
final int NUM_RS = 1;
String invalidHostname = "hostAddr";
String invalidHostname = "hostAddr.invalid";
TEST_UTIL.getConfiguration().set(HRegionServer.HOSTNAME_KEY, invalidHostname);
try {
TEST_UTIL.startMiniCluster(NUM_MASTERS, NUM_RS);
@ -74,8 +74,7 @@ public class TestRegionServerHostname {
// iterate through host addresses and use each as hostname
while (addrList.hasMoreElements()) {
InetAddress addr = addrList.nextElement();
if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress()
|| !ni.getDisplayName().startsWith("e")) {
if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress()) {
continue;
}
String hostName = addr.getHostName();