HBASE-18818 TestConnectionImplemenation fails

This commit is contained in:
Michael Stack 2017-09-14 12:27:37 -07:00
parent d7824f739d
commit 5cb11bc3f7
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ public class TestConnectionImplementation {
// test that we fail to get a client to an unresolvable hostname, which
// means it won't be cached
ServerName badHost =
ServerName.valueOf("unknownhost.example.com:" + HConstants.DEFAULT_MASTER_PORT,
ServerName.valueOf("unknownhost.invalid:" + HConstants.DEFAULT_MASTER_PORT,
System.currentTimeMillis());
conn.getAdmin(badHost);
fail("Obtaining admin to unresolvable hostname should have failed");
@ -86,7 +86,7 @@ public class TestConnectionImplementation {
// test that we fail to get a client to an unresolvable hostname, which
// means it won't be cached
ServerName badHost =
ServerName.valueOf("unknownhost.example.com:" + HConstants.DEFAULT_REGIONSERVER_PORT,
ServerName.valueOf("unknownhost.invalid:" + HConstants.DEFAULT_REGIONSERVER_PORT,
System.currentTimeMillis());
conn.getAdmin(badHost);
fail("Obtaining client to unresolvable hostname should have failed");