test: increase timeout

Original commit: elastic/x-pack-elasticsearch@abf2297f87
This commit is contained in:
Martijn van Groningen 2015-02-26 08:36:49 +01:00
parent c016516d7e
commit 4934267789
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@ import org.elasticsearch.test.discovery.ClusterDiscoveryConfiguration;
import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.test.junit.annotations.TestLogging;
import org.junit.Test; import org.junit.Test;
import java.util.concurrent.TimeUnit;
import static org.elasticsearch.index.query.QueryBuilders.termQuery; import static org.elasticsearch.index.query.QueryBuilders.termQuery;
import static org.elasticsearch.search.builder.SearchSourceBuilder.searchSource; import static org.elasticsearch.search.builder.SearchSourceBuilder.searchSource;
import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.equalTo;
@ -142,7 +144,7 @@ public class NoMasterNodeTests extends AbstractAlertingTests {
} }
return true; return true;
} }
}), equalTo(true)); }, 30, TimeUnit.SECONDS), equalTo(true));
// Ensure that the alert manager doesn't run elsewhere // Ensure that the alert manager doesn't run elsewhere
for (AlertsService alertsService : internalTestCluster().getInstances(AlertsService.class)) { for (AlertsService alertsService : internalTestCluster().getInstances(AlertsService.class)) {
assertThat(alertsService.state(), is(AlertsService.State.STOPPED)); assertThat(alertsService.state(), is(AlertsService.State.STOPPED));