From 7874a597719c75a418a8e237db5b02945bbb7603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Tue, 24 Oct 2023 17:54:39 +0200 Subject: [PATCH] Remove invalid domain integration tests Closes gh-31119 --- .../client/WebClientIntegrationTests.java | 17 ----------------- 1 file changed, 17 deletions(-) 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 0a0f94f4b4..a55db81ffa 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 @@ class WebClientIntegrationTests { 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);