From d0828be0cd2d2551f4c8bf95f7becbe6fdaaf6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Fri, 20 Jan 2023 12:24:41 +0100 Subject: [PATCH] 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 6e936a408195f95d41f3463bb93e255218493664. Closes gh-29863 --- .../client/WebClientIntegrationTests.java | 20 +------------------ 1 file changed, 1 insertion(+), 19 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 4a3e2164524..02937b505d2 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 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1075,24 +1075,6 @@ class WebClientIntegrationTests { }); } - @ParameterizedWebClientTest // SPR-15782 - void exchangeWithRelativeUrl(ClientHttpConnector connector) { - startServer(connector); - - String uri = "/api/v4/groups/1"; - Mono> responseMono = WebClient.builder().build().get().uri(uri) - .retrieve().toBodilessEntity(); - - StepVerifier.create(responseMono) - .expectErrorSatisfies(throwable -> { - assertThat(throwable).isInstanceOf(WebClientRequestException.class); - WebClientRequestException ex = (WebClientRequestException) throwable; - assertThat(ex.getMethod()).isEqualTo(HttpMethod.GET); - assertThat(ex.getUri()).isEqualTo(URI.create(uri)); - }) - .verify(Duration.ofSeconds(5)); - } - @ParameterizedWebClientTest void filter(ClientHttpConnector connector) { startServer(connector);