Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
  • Loading branch information
kimbor committed Oct 25, 2024
1 parent 9f6e013 commit 166650f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 166650f

Please sign in to comment.