From c016516d7ea15571fd57a3108face9a3a98d405e Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 25 Feb 2015 23:31:11 +0100 Subject: [PATCH] test: evaluate if this prevents the data loss that causes no alerts being loaded. Original commit: elastic/x-pack-elasticsearch@611f3df8163e10e871b55688bbf3f7e05836d539 --- src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java b/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java index 566d7432a2a..2443432bdf8 100644 --- a/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java +++ b/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java @@ -112,6 +112,7 @@ public class NoMasterNodeTests extends AbstractAlertingTests { .setAlertSource(alertSource) .get(); } + ensureGreen(); for (int i = 1; i <= numberOfFailures; i++) { logger.info("Failure round {}", i);