diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java index 3033fc7718..c7098f14eb 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java @@ -878,7 +878,7 @@ public abstract class AbstractServletWebServerFactoryTests { @Test void malformedAddress() throws Exception { AbstractServletWebServerFactory factory = getFactory(); - factory.setAddress(InetAddress.getByName("123456")); + factory.setAddress(InetAddress.getByName("255.255.255.255")); assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> { this.webServer = factory.getWebServer(); this.webServer.start();