[ML] fixing test related to #40963 (#41074) (#41116)

This commit is contained in:
Benjamin Trent 2019-04-11 11:19:56 -05:00 committed by GitHub
parent 233df6b73b
commit 9e32e36799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -105,7 +105,6 @@ public class DataFrameGetAndGetStatsIT extends DataFrameRestTestCase {
assertEquals(1, XContentMapValues.extractValue("count", transforms)); assertEquals(1, XContentMapValues.extractValue("count", transforms));
} }
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/40963")
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public void testGetPersistedStatsWithoutTask() throws Exception { public void testGetPersistedStatsWithoutTask() throws Exception {
createPivotReviewsTransform("pivot_stats_1", "pivot_reviews_stats_1", null); createPivotReviewsTransform("pivot_stats_1", "pivot_reviews_stats_1", null);
@ -131,7 +130,6 @@ public class DataFrameGetAndGetStatsIT extends DataFrameRestTestCase {
for (Map<String, Object> transformStats : transformsStats) { for (Map<String, Object> transformStats : transformsStats) {
Map<String, Object> stat = (Map<String, Object>)transformStats.get("stats"); Map<String, Object> stat = (Map<String, Object>)transformStats.get("stats");
assertThat(((Integer)stat.get("documents_processed")), greaterThan(0)); assertThat(((Integer)stat.get("documents_processed")), greaterThan(0));
assertThat(((Integer)stat.get("search_time_in_ms")), greaterThan(0));
assertThat(((Integer)stat.get("search_total")), greaterThan(0)); assertThat(((Integer)stat.get("search_total")), greaterThan(0));
assertThat(((Integer)stat.get("pages_processed")), greaterThan(0)); assertThat(((Integer)stat.get("pages_processed")), greaterThan(0));
} }