diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java index ccb527aa5f..5d9eae4c12 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java @@ -214,7 +214,8 @@ public class UndertowServletWebServerFactoryTests .isThrownBy(() -> testRestrictedSSLProtocolsAndCipherSuites( new String[] { "TLSv1.2" }, new String[] { "TLS_EMPTY_RENEGOTIATION_INFO_SCSV" })) - .isInstanceOfAny(SSLHandshakeException.class, SocketException.class); + .isInstanceOfAny(SSLException.class, SSLHandshakeException.class, + SocketException.class); } @Test