From b4a465496a3826e30da7cbce2e5a365af44ae2da Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 18 Feb 2015 20:10:44 +0100 Subject: [PATCH] Test: increased logging Original commit: elastic/x-pack-elasticsearch@8f95a6068344e3de32245773f9f09880194822c2 --- src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java b/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java index e925226632f..15441bb2ed2 100644 --- a/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java +++ b/src/test/java/org/elasticsearch/alerts/NoMasterNodeTests.java @@ -21,6 +21,7 @@ import org.elasticsearch.discovery.MasterNotDiscoveredException; import org.elasticsearch.discovery.zen.elect.ElectMasterService; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.elasticsearch.test.discovery.ClusterDiscoveryConfiguration; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.junit.Test; import static org.elasticsearch.index.query.QueryBuilders.termQuery; @@ -91,6 +92,7 @@ public class NoMasterNodeTests extends AbstractAlertingTests { } @Test + @TestLogging("alerts:TRACE") public void testMultipleFailures() throws Exception { int numberOfFailures = scaledRandomIntBetween(2, 9); int numberOfAlerts = scaledRandomIntBetween(numberOfFailures, 12);