Integrated: 8295777: java/net/httpclient/ConnectExceptionTest.java should not rely on system resolver

Daniel Jeliński djelinski at openjdk.org
Mon Oct 24 06:11:27 UTC 2022


On Fri, 21 Oct 2022 09:54:13 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 65c84e0c
Author:    Daniel Jeliński <djelinski at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/65c84e0cf890df2a604ac07213327be007227e77
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8295777: java/net/httpclient/ConnectExceptionTest.java should not rely on system resolver

Reviewed-by: dfuchs, jpai

-------------

PR: https://git.openjdk.org/jdk/pull/10811


More information about the net-dev mailing list