From 49342677899b522904e5c872963b0182f1d47830 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 26 Feb 2015 08:36:49 +0100 Subject: [PATCH] test: increase timeout Original commit: elastic/x-pack-elasticsearch@abf2297f8751485f828d5107c2860fc46a292f6f --- src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java b/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java index 2443432bdf8..02b9bff28a7 100644 --- a/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java +++ b/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java @@ -24,6 +24,8 @@ import org.elasticsearch.test.discovery.ClusterDiscoveryConfiguration; import org.elasticsearch.test.junit.annotations.TestLogging; import org.junit.Test; +import java.util.concurrent.TimeUnit; + import static org.elasticsearch.index.query.QueryBuilders.termQuery; import static org.elasticsearch.search.builder.SearchSourceBuilder.searchSource; import static org.hamcrest.Matchers.equalTo; @@ -142,7 +144,7 @@ public class NoMasterNodeTests extends AbstractAlertingTests { } return true; } - }), equalTo(true)); + }, 30, TimeUnit.SECONDS), equalTo(true)); // Ensure that the alert manager doesn't run elsewhere for (AlertsService alertsService : internalTestCluster().getInstances(AlertsService.class)) { assertThat(alertsService.state(), is(AlertsService.State.STOPPED));