Skip to content

Commit 8f94c4e

Browse files
committed
Remove WebClientIntegrationTests#exchangeWithRelativeUrl outdated test
This test can fail when a web server runs on port 80 and is not relevant anymore due to the removal of related feature via 6e936a4. Closes gh-28902
1 parent 20c79e1 commit 8f94c4e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java

-18
Original file line numberDiff line numberDiff line change
@@ -1091,24 +1091,6 @@ void exchangeForUnknownStatusCode(ClientHttpConnector connector) {
10911091
});
10921092
}
10931093

1094-
@ParameterizedWebClientTest // SPR-15782
1095-
void exchangeWithRelativeUrl(ClientHttpConnector connector) {
1096-
startServer(connector);
1097-
1098-
String uri = "/api/v4/groups/1";
1099-
Mono<ResponseEntity<Void>> responseMono = WebClient.builder().build().get().uri(uri)
1100-
.retrieve().toBodilessEntity();
1101-
1102-
StepVerifier.create(responseMono)
1103-
.expectErrorSatisfies(throwable -> {
1104-
assertThat(throwable).isInstanceOf(WebClientRequestException.class);
1105-
WebClientRequestException ex = (WebClientRequestException) throwable;
1106-
assertThat(ex.getMethod()).isEqualTo(HttpMethod.GET);
1107-
assertThat(ex.getUri()).isEqualTo(URI.create(uri));
1108-
})
1109-
.verify(Duration.ofSeconds(5));
1110-
}
1111-
11121094
@ParameterizedWebClientTest
11131095
void filter(ClientHttpConnector connector) {
11141096
startServer(connector);

0 commit comments

Comments
 (0)