mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix broken ServerPropertiesTests on OSX
Fixed ServerPropertiesTests to use InetAddress.getByName("127.0.0.1") instead of InetAddress.getLocalHost().
This commit is contained in:
parent
4743d1803c
commit
88a1c1de41
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user