From 47d93cfa39df27c18340e8d0d5954822b58712e8 Mon Sep 17 00:00:00 2001 From: "maciej.moscicki" Date: Mon, 24 Jul 2023 12:14:53 +0200 Subject: [PATCH] fix metric name in ZookeeperUndeliveredMessageLogTest --- .../message/undelivered/ZookeeperUndeliveredMessageLogTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes-common/src/test/java/pl/allegro/tech/hermes/common/message/undelivered/ZookeeperUndeliveredMessageLogTest.java b/hermes-common/src/test/java/pl/allegro/tech/hermes/common/message/undelivered/ZookeeperUndeliveredMessageLogTest.java index 5ebbcf1507..07a5adf976 100644 --- a/hermes-common/src/test/java/pl/allegro/tech/hermes/common/message/undelivered/ZookeeperUndeliveredMessageLogTest.java +++ b/hermes-common/src/test/java/pl/allegro/tech/hermes/common/message/undelivered/ZookeeperUndeliveredMessageLogTest.java @@ -132,6 +132,6 @@ private void assertThatMetricsHaveBeenReported(int persistedMessageCount) { assertThat(hermesMetrics.meter(PERSISTED_UNDELIVERED_MESSAGES_METER).getCount()).isEqualTo(persistedMessageCount); assertThat(hermesMetrics.histogram(PERSISTED_UNDELIVERED_MESSAGE_SIZE).getCount()).isEqualTo(persistedMessageCount); assertThat(metricValue(meterRegistry, PERSISTED_UNDELIVERED_MESSAGES_METER, Search::counter, Counter::count).orElse(0.0d)).isEqualTo(persistedMessageCount); - assertThat(metricValue(meterRegistry, PERSISTED_UNDELIVERED_MESSAGE_SIZE, Search::summary, DistributionSummary::count).orElse(0L)).isEqualTo(persistedMessageCount); + assertThat(metricValue(meterRegistry, PERSISTED_UNDELIVERED_MESSAGE_SIZE + ".bytes", Search::summary, DistributionSummary::count).orElse(0L)).isEqualTo(persistedMessageCount); } }