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 8f63c4a2c0b..62e7432e635 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 @@ -924,7 +924,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();