From 29180cefacb90406ef9206408f24d8b354c4722e Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Tue, 2 Apr 2019 12:33:35 -0500 Subject: [PATCH] [ML] fix test check as randomness allows for different hours (#40536) (#40727) * [ML] fix test check as randomness allows for different hours * Re-enabling test --- .../xpack/dataframe/integration/DataFramePivotRestIT.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugin/data-frame/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFramePivotRestIT.java b/x-pack/plugin/data-frame/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFramePivotRestIT.java index 99c08f1a505..95daf11f674 100644 --- a/x-pack/plugin/data-frame/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFramePivotRestIT.java +++ b/x-pack/plugin/data-frame/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFramePivotRestIT.java @@ -268,7 +268,6 @@ public class DataFramePivotRestIT extends DataFrameRestTestCase { }); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/40537") public void testPivotWithMaxOnDateField() throws Exception { String transformId = "simpleDateHistogramPivotWithMaxTime"; String dataFrameIndex = "pivot_reviews_via_date_histogram_with_max_time"; @@ -312,7 +311,7 @@ public class DataFramePivotRestIT extends DataFrameRestTestCase { Map searchResult = getAsMap(dataFrameIndex + "/_search?q=by_day:2017-01-15"); String actual = (String) ((List) XContentMapValues.extractValue("hits.hits._source.timestamp", searchResult)).get(0); // Do `containsString` as actual ending timestamp is indeterminate due to how data is generated - assertThat(actual, containsString("2017-01-15T20:")); + assertThat(actual, containsString("2017-01-15T")); } private void assertOnePivotValue(String query, double expected) throws IOException {