From 10c37f0fa4ff101d8821b82f361e0b90e3ddc13b Mon Sep 17 00:00:00 2001 From: David Roberts Date: Fri, 30 Jun 2017 11:47:53 +0100 Subject: [PATCH] [TEST] Improve diagnostics for ML interim results test failure Original commit: elastic/x-pack-elasticsearch@2ccc9d71ae03788264a4dd03fe9ffaec7d4e2cae --- .../xpack/ml/integration/UpdateInterimResultsIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/UpdateInterimResultsIT.java b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/UpdateInterimResultsIT.java index 5d03e7771a0..f16c6b532d5 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/UpdateInterimResultsIT.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/UpdateInterimResultsIT.java @@ -81,7 +81,7 @@ public class UpdateInterimResultsIT extends MlNativeAutodetectIntegTestCase { // We might need to retry this while waiting for a refresh assertBusy(() -> { List firstInterimBuckets = getInterimResults(job.getId()); - assertThat(firstInterimBuckets.size(), equalTo(2)); + assertThat("interim buckets were: " + firstInterimBuckets, firstInterimBuckets.size(), equalTo(2)); assertThat(firstInterimBuckets.get(0).getTimestamp().getTime(), equalTo(1400039000000L)); assertThat(firstInterimBuckets.get(1).getTimestamp().getTime(), equalTo(1400040000000L)); assertThat(firstInterimBuckets.get(1).getRecords().get(0).getActual().get(0), equalTo(16.0));