From 88a1c1de41e145d7c39abe4d6dc4f3fd51545748 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 8 May 2013 14:27:25 -0700 Subject: [PATCH] Fix broken ServerPropertiesTests on OSX Fixed ServerPropertiesTests to use InetAddress.getByName("127.0.0.1") instead of InetAddress.getLocalHost(). --- .../bootstrap/actuate/properties/ServerPropertiesTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/properties/ServerPropertiesTests.java b/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/properties/ServerPropertiesTests.java index bcf296fb149..975583ba07c 100644 --- a/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/properties/ServerPropertiesTests.java +++ b/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/properties/ServerPropertiesTests.java @@ -27,9 +27,8 @@ import static org.junit.Assert.assertFalse; /** * Externalized configuration for server properties - * + * * @author Dave Syer - * */ public class ServerPropertiesTests { @@ -41,7 +40,7 @@ public class ServerPropertiesTests { binder.bind(new MutablePropertyValues(Collections.singletonMap("server.address", "127.0.0.1"))); assertFalse(binder.getBindingResult().hasErrors()); - assertEquals(InetAddress.getLocalHost(), this.properties.getAddress()); + assertEquals(InetAddress.getByName("127.0.0.1"), this.properties.getAddress()); } @Test