HDFS-16755. TestQJMWithFaults.testUnresolvableHostName() can fail due to unexpected host resolution (#4833)
Use ".invalid" domain from IETF RFC 2606 to ensure that the host doesn't resolve. Contributed by Steve Vaughan Jr
This commit is contained in:
parent
33edbed54c
commit
2dd8b1342e
|
@ -198,7 +198,7 @@ public class TestQJMWithFaults {
|
|||
public void testUnresolvableHostName() throws Exception {
|
||||
expectedException.expect(UnknownHostException.class);
|
||||
new QuorumJournalManager(conf,
|
||||
new URI("qjournal://" + "bogus:12345" + "/" + JID), FAKE_NSINFO);
|
||||
new URI("qjournal://" + "bogus.invalid:12345" + "/" + JID), FAKE_NSINFO);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue