From 752356916d9538e021a952157ceaf6e1823e0b51 Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Mon, 6 Feb 2017 19:40:15 +0100 Subject: [PATCH] Tests: Fix failing test Caused by removing search QUERY_AND_FETCH Original commit: elastic/x-pack-elasticsearch@18070b40bb4f253d626719cbba8801a436fbe515 --- .../history/HistoryTemplateSearchInputMappingsTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java index 42db03918cb..fca8e90224d 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java @@ -84,8 +84,8 @@ public class HistoryTemplateSearchInputMappingsTests extends AbstractWatcherInte Terms terms = aggs.get("input_search_type"); assertThat(terms, notNullValue()); assertThat(terms.getBuckets().size(), is(1)); - assertThat(terms.getBucketByKey("query_and_fetch"), notNullValue()); - assertThat(terms.getBucketByKey("query_and_fetch").getDocCount(), is(1L)); + assertThat(terms.getBucketByKey("query_then_fetch"), notNullValue()); + assertThat(terms.getBucketByKey("query_then_fetch").getDocCount(), is(1L)); terms = aggs.get("input_indices"); assertThat(terms, notNullValue());