HBASE-18818 TestConnectionImplemenation fails
This commit is contained in:
parent
d7824f739d
commit
5cb11bc3f7
|
@ -67,7 +67,7 @@ public class TestConnectionImplementation {
|
||||||
// test that we fail to get a client to an unresolvable hostname, which
|
// test that we fail to get a client to an unresolvable hostname, which
|
||||||
// means it won't be cached
|
// means it won't be cached
|
||||||
ServerName badHost =
|
ServerName badHost =
|
||||||
ServerName.valueOf("unknownhost.example.com:" + HConstants.DEFAULT_MASTER_PORT,
|
ServerName.valueOf("unknownhost.invalid:" + HConstants.DEFAULT_MASTER_PORT,
|
||||||
System.currentTimeMillis());
|
System.currentTimeMillis());
|
||||||
conn.getAdmin(badHost);
|
conn.getAdmin(badHost);
|
||||||
fail("Obtaining admin to unresolvable hostname should have failed");
|
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
|
// test that we fail to get a client to an unresolvable hostname, which
|
||||||
// means it won't be cached
|
// means it won't be cached
|
||||||
ServerName badHost =
|
ServerName badHost =
|
||||||
ServerName.valueOf("unknownhost.example.com:" + HConstants.DEFAULT_REGIONSERVER_PORT,
|
ServerName.valueOf("unknownhost.invalid:" + HConstants.DEFAULT_REGIONSERVER_PORT,
|
||||||
System.currentTimeMillis());
|
System.currentTimeMillis());
|
||||||
conn.getAdmin(badHost);
|
conn.getAdmin(badHost);
|
||||||
fail("Obtaining client to unresolvable hostname should have failed");
|
fail("Obtaining client to unresolvable hostname should have failed");
|
||||||
|
|
Loading…
Reference in New Issue