From 6163f661a4d6a14feb58167d9bfc269b380f2c82 Mon Sep 17 00:00:00 2001 From: emitskevich Date: Wed, 15 May 2024 22:23:26 -0400 Subject: [PATCH] Cleanup test --- .../java/org/apache/kafka/common/metrics/stats/RateTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/clients/src/test/java/org/apache/kafka/common/metrics/stats/RateTest.java b/clients/src/test/java/org/apache/kafka/common/metrics/stats/RateTest.java index 11a78ef8de370..7b2132cb5cf83 100644 --- a/clients/src/test/java/org/apache/kafka/common/metrics/stats/RateTest.java +++ b/clients/src/test/java/org/apache/kafka/common/metrics/stats/RateTest.java @@ -93,8 +93,6 @@ public void testRateIsConsistentAfterTheFirstWindow() { rate.record(config, 1, time.milliseconds()); double observedRate1 = rate.measure(config, time.milliseconds()); assertTrue(10 <= observedRate1 && observedRate1 <= 11); - double observedRate2 = rate.measure(config, time.milliseconds()); - assertTrue(10 <= observedRate2 && observedRate2 <= 11); } } }