From a55476bf70a0df76306e60f6b7b750a28ee4ee73 Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Mon, 2 Feb 2015 09:45:21 +0100 Subject: [PATCH] Tests: Ensure no use of potentially resolving internal ips --- .../netty/NettyTransportMultiPortIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortIntegrationTests.java b/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortIntegrationTests.java index 171ca88800f..92ff86ff161 100644 --- a/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortIntegrationTests.java +++ b/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortIntegrationTests.java @@ -55,7 +55,7 @@ public class NettyTransportMultiPortIntegrationTests extends ElasticsearchIntegr .put(TransportModule.TRANSPORT_TYPE_KEY, NettyTransport.class.getName()) .put("node.mode", "network") .put("transport.profiles.client1.port", randomPortRange) - .put("transport.profiles.client1.publish_host", "10.0.254.253") + .put("transport.profiles.client1.publish_host", "127.0.0.7") .put("transport.profiles.client1.publish_port", "4321") .put("transport.profiles.client1.reuse_address", true) .build(); @@ -90,7 +90,7 @@ public class NettyTransportMultiPortIntegrationTests extends ElasticsearchIntegr // publish address assertThat(nodeInfo.getTransport().getProfileAddresses().get("client1").publishAddress(), instanceOf(InetSocketTransportAddress.class)); InetSocketTransportAddress publishAddress = (InetSocketTransportAddress) nodeInfo.getTransport().getProfileAddresses().get("client1").publishAddress(); - assertThat(publishAddress.address().getHostName(), is("10.0.254.253")); + assertThat(publishAddress.address().getHostName(), is("127.0.0.7")); assertThat(publishAddress.address().getPort(), is(4321)); } }