Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tjquinno committed Dec 2, 2024
1 parent 272792b commit b6e33eb
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ static void initRegistry() {

@Test
void checkDistributionCustomizations() {
// Without the change, the following triggers an NPE because this test does not use @HelidonTest
// and therefore the normal metrics CDI extension initialization code --which sets up the distribution
// customizations -- does not run.
// Without the change in the main source, the following triggers an NPE because this test does not use @HelidonTest
// and therefore the normal metrics CDI extension initialization code--which sets up the distribution
// customizations--does not run. That means the configurable distribution customizations are never set, leading
// to the NPE.
Timer timer = metricRegistry.timer("testTimer");
assertThat("Timer", timer, notNullValue());
}
Expand Down

0 comments on commit b6e33eb

Please sign in to comment.