Skip to content

Commit

Permalink
[Transform] add more debug logging in testUsage IT (#65296)
Browse files Browse the repository at this point in the history
log the full usage response on failure (individual counts are logged already)

relates #52931
  • Loading branch information
Hendrik Muhs authored Nov 20, 2020
1 parent 2d9b83e commit ed5498e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ public void testUsage() throws Exception {
// the trigger count can be higher if the scheduler kicked before usage has been called, therefore check for gte
if (statName.equals(TransformIndexerStats.NUM_INVOCATIONS.getPreferredName())) {
assertThat(
"Incorrect stat " + statName,
"Incorrect stat " + statName + ", got: " + statsMap.get("transform"),
extractStatsAsDouble(XContentMapValues.extractValue("transform.stats." + statName, statsMap)),
greaterThanOrEqualTo(expectedStats.get(statName).doubleValue())
);
} else {
assertThat(
"Incorrect stat " + statName,
"Incorrect stat " + statName + ", got: " + statsMap.get("transform"),
extractStatsAsDouble(XContentMapValues.extractValue("transform.stats." + statName, statsMap)),
equalTo(expectedStats.get(statName).doubleValue())
);
Expand Down

0 comments on commit ed5498e

Please sign in to comment.