Skip to content

Commit d0828be

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-29863
1 parent 4a4b332 commit d0828be

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

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

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -1075,24 +1075,6 @@ void exchangeForUnknownStatusCode(ClientHttpConnector connector) {
10751075
});
10761076
}
10771077

1078-
@ParameterizedWebClientTest // SPR-15782
1079-
void exchangeWithRelativeUrl(ClientHttpConnector connector) {
1080-
startServer(connector);
1081-
1082-
String uri = "/api/v4/groups/1";
1083-
Mono<ResponseEntity<Void>> responseMono = WebClient.builder().build().get().uri(uri)
1084-
.retrieve().toBodilessEntity();
1085-
1086-
StepVerifier.create(responseMono)
1087-
.expectErrorSatisfies(throwable -> {
1088-
assertThat(throwable).isInstanceOf(WebClientRequestException.class);
1089-
WebClientRequestException ex = (WebClientRequestException) throwable;
1090-
assertThat(ex.getMethod()).isEqualTo(HttpMethod.GET);
1091-
assertThat(ex.getUri()).isEqualTo(URI.create(uri));
1092-
})
1093-
.verify(Duration.ofSeconds(5));
1094-
}
1095-
10961078
@ParameterizedWebClientTest
10971079
void filter(ClientHttpConnector connector) {
10981080
startServer(connector);

0 commit comments

Comments
 (0)