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:
parent
35fa934971
commit
9f824c4aa8
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue