From 166650f8130cd7ac4763cbfc9e96072be676775c Mon Sep 17 00:00:00 2001 From: Kim Rader Date: Fri, 25 Oct 2024 10:45:20 -0700 Subject: [PATCH] Fix unit tests Signed-off-by: Kim Rader --- .../app/workflows/handle/metrics/OpWorkflowMetricsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/metrics/OpWorkflowMetricsTest.java b/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/metrics/OpWorkflowMetricsTest.java index 131aef712cd7..228be9e61309 100644 --- a/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/metrics/OpWorkflowMetricsTest.java +++ b/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/metrics/OpWorkflowMetricsTest.java @@ -72,7 +72,7 @@ void testInitialValue() { .isEqualTo(0); assertThat(metrics.getMetric("app", "cryptoCreateDurationAvg").get(VALUE)) .isEqualTo(0); - assertThat(metrics.getMetric("app", "cryptoCreateThrottledTps").get(VALUE)) + assertThat(metrics.getMetric("app", "cryptoCreateThrottledTxns").get(VALUE)) .isSameAs(0L); } @@ -154,7 +154,7 @@ void testIncrementThrottled() { handleWorkflowMetrics.incrementThrottled(HederaFunctionality.CRYPTO_CREATE); // then - final var throttledMetric = (Counter) metrics.getMetric("app", "cryptoCreateThrottledTps"); + final var throttledMetric = (Counter) metrics.getMetric("app", "cryptoCreateThrottledTxns"); assertThat(throttledMetric.get()).isSameAs(1L); }