Skip to content

Commit 9f824c4

Browse files
authored
Add detailed assert message to IndexAuditUpgradeIT (#30669)
Print out the returned buckets if the size does not match the expectation.
1 parent 35fa934 commit 9f824c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/IndexAuditUpgradeIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ private void assertNumUniqueNodeNameBuckets(int numBuckets) throws Exception {
7171
assertNotNull(nodesAgg);
7272
List<Map<String, Object>> buckets = (List<Map<String, Object>>) nodesAgg.get("buckets");
7373
assertNotNull(buckets);
74-
assertEquals(numBuckets, buckets.size());
74+
assertEquals("Found node buckets " + buckets, numBuckets, buckets.size());
7575
}
7676
}

0 commit comments

Comments
 (0)