From 522d4afe0ca6026f9a81f00497d62b41c9c4b272 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Thu, 10 Jul 2014 18:50:46 +0200 Subject: [PATCH] [Tests] Use local gateway This is important to for proper primary allocation decisions --- .../discovery/DiscoveryWithNetworkFailuresTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/elasticsearch/discovery/DiscoveryWithNetworkFailuresTests.java b/src/test/java/org/elasticsearch/discovery/DiscoveryWithNetworkFailuresTests.java index 8310f291011..866f1a74fa9 100644 --- a/src/test/java/org/elasticsearch/discovery/DiscoveryWithNetworkFailuresTests.java +++ b/src/test/java/org/elasticsearch/discovery/DiscoveryWithNetworkFailuresTests.java @@ -67,6 +67,7 @@ import static org.hamcrest.Matchers.is; public class DiscoveryWithNetworkFailuresTests extends ElasticsearchIntegrationTest { private static final Settings nodeSettings = ImmutableSettings.settingsBuilder() + .put("gateway.type", "local") .put("discovery.type", "zen") // <-- To override the local setting if set externally .put("discovery.zen.fd.ping_timeout", "1s") // <-- for hitting simulated network failures quickly .put("discovery.zen.fd.ping_retries", "1") // <-- for hitting simulated network failures quickly