Now fix test for real

Original commit: elastic/x-pack-elasticsearch@57e5a401e7
This commit is contained in:
Martijn van Groningen 2015-03-02 14:40:05 +01:00
parent 14b1f6c3d2
commit 2aa91e84ed
1 changed files with 0 additions and 2 deletions

View File

@ -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()