Add detailed assert message to IndexAuditUpgradeIT (#30669)

Print out the returned buckets if the size does not match the
expectation.
This commit is contained in:
Tim Vernum 2018-05-17 21:36:13 +10:00 committed by GitHub
parent 35fa934971
commit 9f824c4aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,6 +71,6 @@ public class IndexAuditUpgradeIT extends AbstractUpgradeTestCase {
assertNotNull(nodesAgg);
List<Map<String, Object>> buckets = (List<Map<String, Object>>) nodesAgg.get("buckets");
assertNotNull(buckets);
assertEquals(numBuckets, buckets.size());
assertEquals("Found node buckets " + buckets, numBuckets, buckets.size());
}
}