Browse Source

Update maformed address to one that should fail on CI

Closes gh-26247
pull/27078/head
Andy Wilkinson 5 years ago
parent
commit
715c4febf9
  1. 2
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java

2
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java

@ -935,7 +935,7 @@ public abstract class AbstractServletWebServerFactoryTests { @@ -935,7 +935,7 @@ public abstract class AbstractServletWebServerFactoryTests {
@Test
void malformedAddress() throws Exception {
AbstractServletWebServerFactory factory = getFactory();
factory.setAddress(InetAddress.getByName("255.255.255.255"));
factory.setAddress(InetAddress.getByName("129.129.129.129"));
assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> {
this.webServer = factory.getWebServer();
this.webServer.start();

Loading…
Cancel
Save