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 committed May 18, 2018
1 parent 5fcebc9 commit cfd239a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ private void assertNumUniqueNodeNameBuckets(Matcher<Integer> numBucketsMatcher)
assertNotNull(nodesAgg);
List<Map<String, Object>> buckets = (List<Map<String, Object>>) nodesAgg.get("buckets");
assertNotNull(buckets);
assertThat(buckets.size(), numBucketsMatcher);
assertThat("Found node buckets " + buckets, buckets.size(), numBucketsMatcher);
}
}

0 comments on commit cfd239a

Please sign in to comment.