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 committed Jan 28, 2025
1 parent 3e7b1f0 commit 5e9c78f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,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 5e9c78f

Please sign in to comment.