[Tests] Use local gateway

This is important to for proper primary allocation decisions
This commit is contained in:
Boaz Leskes 2014-07-10 18:50:46 +02:00
parent 3586e38c40
commit 522d4afe0c
1 changed files with 1 additions and 0 deletions

View File

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