diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml
index 7f0ab7d416..1be34b8448 100644
--- a/spring-boot-project/spring-boot-dependencies/pom.xml
+++ b/spring-boot-project/spring-boot-dependencies/pom.xml
@@ -142,7 +142,7 @@
8.0.21
1.9.22
3.1.21
- 4.1.51.Final
+ 4.1.52.Final
2.0.34.Final
1.1.0
1.0.6
diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java
index 8746030ebf..fa40204dbd 100644
--- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java
+++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java
@@ -259,7 +259,11 @@ public abstract class AbstractReactiveWebServerFactoryTests {
Mono result = client.post().uri("/test").contentType(MediaType.TEXT_PLAIN)
.body(BodyInserters.fromObject("Hello World")).exchange()
.flatMap((response) -> response.bodyToMono(String.class));
- StepVerifier.create(result).expectError(SSLException.class).verify(Duration.ofSeconds(10));
+ StepVerifier.create(result).expectErrorSatisfies((exception) -> {
+ if (!(exception instanceof SSLException)) {
+ assertThat(exception).hasCauseInstanceOf(SSLException.class);
+ }
+ }).verify(Duration.ofSeconds(10));
}
protected WebClient.Builder getWebClient() {