Test: force local transport in ZenDiscoveryTests.testHandleNodeJoin_incompatibleMinVersion

Otherwise we ignore the join request due to a transport address mismatch instead of failing it.
This commit is contained in:
Boaz Leskes 2015-07-02 22:20:12 +02:00
parent 3171f52461
commit 3084bed194
1 changed files with 1 additions and 0 deletions

View File

@ -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);