From d3762d642799c582ece8490ca58caca104d5b2b8 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 6 Feb 2015 20:30:42 +0000 Subject: [PATCH] [TEST] Make tests pass while flying --- .../transport/netty/NettyTransportMultiPortTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortTests.java b/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortTests.java index 95797c51396..3c6dbdc4ef4 100644 --- a/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortTests.java +++ b/src/test/java/org/elasticsearch/transport/netty/NettyTransportMultiPortTests.java @@ -136,7 +136,7 @@ public class NettyTransportMultiPortTests extends ElasticsearchTestCase { public void testThatBindingOnDifferentHostsWorks() throws Exception { int[] ports = getRandomPorts(2); InetAddress firstNonLoopbackAddress = NetworkUtils.getFirstNonLoopbackAddress(NetworkUtils.StackType.IPv4); - + assumeTrue("No IP-v4 non-loopback address available - are you on a plane?", firstNonLoopbackAddress != null); Settings settings = settingsBuilder() .put("network.host", "127.0.0.1") .put("transport.tcp.port", ports[0])