Skip to content

Commit be8483d

Browse files
committed
Skip CONNECT for unsupported connectors in tests
The CONNECT method is not supported by HttpComponentsClientHttpConnector and JdkClientHttpConnector.
1 parent fce389e commit be8483d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-web/src/test/java/org/springframework/http/client/reactive/ClientHttpConnectorTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ static List<Arguments> methodsWithConnectors() {
271271
List<Arguments> result = new ArrayList<>();
272272
for (Named<ClientHttpConnector> connector : connectors()) {
273273
for (HttpMethod method : HttpMethod.values()) {
274+
if (HttpMethod.CONNECT.equals(method) && List.of("HttpComponents", "Jdk").contains(connector.getName())) {
275+
continue;
276+
}
274277
result.add(Arguments.of(connector, method));
275278
}
276279
}

0 commit comments

Comments
 (0)