RFR: 8295777: java/net/httpclient/ConnectExceptionTest.java should not rely on system resolver
Daniel Jeliński
djelinski at openjdk.org
Fri Oct 21 10:20:28 UTC 2022
This PR makes ConnectExceptionTest use a non-existent hosts file for name resolution.
The test verifies that the HttpClient throws a ConnectException in response to DNS resolution failures. Slow name resolution makes this test take more time to complete. With this patch applied, the test becomes independent from external DNS services.
The test continues to pass.
-------------
Commit messages:
- Better handle dead DNS server
Changes: https://git.openjdk.org/jdk/pull/10811/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10811&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8295777
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/10811.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10811/head:pull/10811
PR: https://git.openjdk.org/jdk/pull/10811
More information about the net-dev
mailing list