Browse Source

Add detailed assert message to IndexAuditUpgradeIT (#30669)

Print out the returned buckets if the size does not match the
expectation.
Tim Vernum 7 năm trước cách đây
mục cha
commit
9f824c4aa8

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

@@ -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());
     }
 }