Skip to content

Commit

Permalink
Remove invalid domain integration tests
Browse files Browse the repository at this point in the history
Closes gh-31119
  • Loading branch information
sdeleuze committed Oct 24, 2023
1 parent 4dab352 commit 7874a59
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1198,23 +1198,6 @@ void exchangeResponseCookies(ClientHttpConnector connector) {
expectRequestCount(1);
}

@ParameterizedWebClientTest
void invalidDomain(ClientHttpConnector connector) {
startServer(connector);

String url = "http://example.invalid";
Mono<Void> 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);
Expand Down

0 comments on commit 7874a59

Please sign in to comment.