From 07a99c4792897bf0531c396114c244acc8c332b2 Mon Sep 17 00:00:00 2001 From: javanna Date: Mon, 10 Apr 2017 14:21:17 +0200 Subject: [PATCH] [TEST] exclude num_reduce_phases from the SearchTransformTests comparisons Original commit: elastic/x-pack-elasticsearch@d3a5c7e86be0d54638113965ccd031a3c380fe89 --- .../watcher/test/integration/SearchTransformTests.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/watcher/test/integration/SearchTransformTests.java b/plugin/src/test/java/org/elasticsearch/xpack/watcher/test/integration/SearchTransformTests.java index ada4eb09c1e..71eba9985dc 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/watcher/test/integration/SearchTransformTests.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/watcher/test/integration/SearchTransformTests.java @@ -117,14 +117,16 @@ public class SearchTransformTests extends ESIntegTestCase { SearchResponse response = client().prepareSearch("idx").get(); Payload expectedPayload = new Payload.XContent(response); - // we need to remove the "took" field from teh response as this is the only field - // that most likely be different between the two... we don't really care about this - // field, we just want to make sure that the important parts of the response are the same + // we need to remove the "took" and "num_reduce_phases" fields from the response + // as they are the only fields most likely different between the two... we don't + // really care about these fields, we just want to make sure that the important + // parts of the response are the same Map resultData = result.payload().data(); resultData.remove("took"); + resultData.remove("num_reduce_phases"); Map expectedData = expectedPayload.data(); expectedData.remove("took"); - + expectedData.remove("num_reduce_phases"); assertThat(resultData, equalTo(expectedData)); }