diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java index 0a0f94f4b476..a55db81ffa32 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java @@ -1198,23 +1198,6 @@ void exchangeResponseCookies(ClientHttpConnector connector) { expectRequestCount(1); } - @ParameterizedWebClientTest - void invalidDomain(ClientHttpConnector connector) { - startServer(connector); - - String url = "http://example.invalid"; - Mono result = this.webClient.get().uri(url).retrieve().bodyToMono(Void.class); - - StepVerifier.create(result) - .expectErrorSatisfies(throwable -> { - assertThat(throwable).isInstanceOf(WebClientRequestException.class); - WebClientRequestException ex = (WebClientRequestException) throwable; - assertThat(ex.getMethod()).isEqualTo(HttpMethod.GET); - assertThat(ex.getUri()).isEqualTo(URI.create(url)); - }) - .verify(); - } - @ParameterizedWebClientTest void malformedResponseChunksOnBodilessEntity(ClientHttpConnector connector) { Mono result = doMalformedChunkedResponseTest(connector, ResponseSpec::toBodilessEntity);