mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 15:05:33 +00:00
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:
parent
3171f52461
commit
3084bed194
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user