diff --git a/src/test/java/org/elasticsearch/alerts/AbstractAlertingTests.java b/src/test/java/org/elasticsearch/alerts/AbstractAlertingTests.java index 6292f2b6f9b..8de4f785d6b 100644 --- a/src/test/java/org/elasticsearch/alerts/AbstractAlertingTests.java +++ b/src/test/java/org/elasticsearch/alerts/AbstractAlertingTests.java @@ -83,10 +83,6 @@ public abstract class AbstractAlertingTests extends ElasticsearchIntegrationTest // Clear all internal alerting state for the next test method: logger.info("[{}#{}]: clearing alerts", getTestClass().getSimpleName(), getTestName()); stopAlerting(); - client().admin().indices().prepareDelete(AlertsStore.ALERT_INDEX, AlertActionManager.ALERT_HISTORY_INDEX_PREFIX + "*") - .setIndicesOptions(IndicesOptions.lenientExpandOpen()) - .get(); - startAlerting(); } protected BytesReference createAlertSource(String cron, SearchRequest request, String scriptTrigger) throws IOException { @@ -122,7 +118,6 @@ public abstract class AbstractAlertingTests extends ElasticsearchIntegrationTest return internalTestCluster().getInstance(AlertsClient.class); } - protected void assertAlertTriggered(final String alertName, final long minimumExpectedAlertActionsWithActionPerformed) throws Exception { assertAlertTriggered(alertName, minimumExpectedAlertActionsWithActionPerformed, true); }