From 2aa91e84edcc334ac9edf8eea04bacfe796996e7 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 2 Mar 2015 14:40:05 +0100 Subject: [PATCH] Now fix test for real Original commit: elastic/x-pack-elasticsearch@57e5a401e73ce4f34a4171d2b66abd63a18c065a --- .../elasticsearch/alerts/test/integration/BasicAlertsTests.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/alerts/test/integration/BasicAlertsTests.java b/src/test/java/org/elasticsearch/alerts/test/integration/BasicAlertsTests.java index 0ff16f62ff6..552c146e456 100644 --- a/src/test/java/org/elasticsearch/alerts/test/integration/BasicAlertsTests.java +++ b/src/test/java/org/elasticsearch/alerts/test/integration/BasicAlertsTests.java @@ -96,8 +96,6 @@ public class BasicAlertsTests extends AbstractAlertsIntegrationTests { @TestLogging("action.admin.indices.delete:TRACE") public void testDeleteAlert() throws Exception { AlertsClient alertsClient = alertClient(); - // Have a sample document in the index, the alert is going to evaluate - client().prepareIndex("my-index", "my-type").setSource("field", "value").get(); SearchRequest searchRequest = AlertsTestUtils.newInputSearchRequest("my-index").source(searchSource().query(matchAllQuery())); PutAlertResponse indexResponse = alertsClient.preparePutAlert("my-first-alert") .source(alertSourceBuilder()