From 3084bed194e8c54144037d0fc3286c5a56fe8920 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Thu, 2 Jul 2015 22:20:12 +0200 Subject: [PATCH] Test: force local transport in ZenDiscoveryTests.testHandleNodeJoin_incompatibleMinVersion Otherwise we ignore the join request due to a transport address mismatch instead of failing it. --- .../java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java b/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java index f0fe007a089..f4c96e6eda7 100644 --- a/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java +++ b/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java @@ -226,6 +226,7 @@ public class ZenDiscoveryTests extends ElasticsearchIntegrationTest { public void testHandleNodeJoin_incompatibleMinVersion() { Settings nodeSettings = Settings.settingsBuilder() .put("discovery.type", "zen") // <-- To override the local setting if set externally + .put("node.mode", "local") // <-- force local transport so we can fake a network address .build(); String nodeName = internalCluster().startNode(nodeSettings, Version.V_2_0_0); ZenDiscovery zenDiscovery = (ZenDiscovery) internalCluster().getInstance(Discovery.class, nodeName);