Skip to content

Commit

Permalink
HADOOP-17837: Add unresolved endpoint value to UnknownHostException (…
Browse files Browse the repository at this point in the history
…ADDENDUM) (#3276)
  • Loading branch information
bbeaudreault authored Aug 6, 2021
1 parent e85c446 commit b0b867e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.apache.hadoop.io.IOUtils;
import org.apache.hadoop.security.KerberosAuthException;
import org.apache.hadoop.security.NetUtilsTestResolver;
import org.apache.hadoop.test.GenericTestUtils;
import org.junit.Assume;
import org.junit.Before;
import org.junit.BeforeClass;
Expand Down Expand Up @@ -111,7 +112,7 @@ public void testInvalidAddress() throws Throwable {
fail("Should not have connected");
} catch (UnknownHostException uhe) {
LOG.info("Got exception: ", uhe);
assertEquals("invalid-test-host:0", uhe.getMessage());
GenericTestUtils.assertExceptionContains("invalid-test-host:0", uhe);
}
}

Expand Down

0 comments on commit b0b867e

Please sign in to comment.