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
6cc5c92a89
commit
3a6c8ff8bb
|
@ -198,7 +198,7 @@ public class TestQJMWithFaults {
|
||||||
public void testUnresolvableHostName() throws Exception {
|
public void testUnresolvableHostName() throws Exception {
|
||||||
expectedException.expect(UnknownHostException.class);
|
expectedException.expect(UnknownHostException.class);
|
||||||
new QuorumJournalManager(conf,
|
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