Skip to content

Commit

Permalink
Add detailed assert message to IndexAuditUpgradeIT (#30669)
Browse files Browse the repository at this point in the history
Print out the returned buckets if the size does not match the
expectation.
  • Loading branch information
tvernum authored May 17, 2018
1 parent 35fa934 commit 9f824c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ private void assertNumUniqueNodeNameBuckets(int numBuckets) throws Exception {
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());
}
}

0 comments on commit 9f824c4

Please sign in to comment.