Skip to content

Commit

Permalink
code review: add additional assert
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Ivarsson <[email protected]>
  • Loading branch information
pativa authored and shakuzen committed Feb 5, 2025
1 parent 356c7dc commit cd4b6bf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ void shouldNotRebindMetricsIfBinderIsClosed() {
try (Log4j2Metrics metrics = new Log4j2Metrics(emptyList(), context)) {
metrics.bindTo(registry);
logger.error("first");
assertThat(registry.get("log4j2.events").tags("level", "error").counter().count()).isEqualTo(1);
}

// This will reload the configuration to default
Expand Down

0 comments on commit cd4b6bf

Please sign in to comment.