From b600c74e858ab145aea34057839b0ef988ad9023 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 24 Dec 2024 10:27:06 -0800 Subject: [PATCH] Fix flaky MicrometerDoubleCounterTest (#1625) --- .../internal/instruments/MicrometerDoubleCounterTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micrometer-meter-provider/src/test/java/io/opentelemetry/contrib/metrics/micrometer/internal/instruments/MicrometerDoubleCounterTest.java b/micrometer-meter-provider/src/test/java/io/opentelemetry/contrib/metrics/micrometer/internal/instruments/MicrometerDoubleCounterTest.java index 04e3d652d..fd7585605 100644 --- a/micrometer-meter-provider/src/test/java/io/opentelemetry/contrib/metrics/micrometer/internal/instruments/MicrometerDoubleCounterTest.java +++ b/micrometer-meter-provider/src/test/java/io/opentelemetry/contrib/metrics/micrometer/internal/instruments/MicrometerDoubleCounterTest.java @@ -324,7 +324,7 @@ void observableWithAttributes() { callbackRegistrar.run(); assertThat(counter.count()).isEqualTo(20.0); - double expectedCount = 10.0; + double expectedCount = 20.0; for (double value : RandomUtils.randomDoubles(10, 0.0, 500.0)) { expectedCount += value; @@ -389,7 +389,7 @@ void observableWithAttributesAndAttributesAdvice() { callbackRegistrar.run(); assertThat(counter.count()).isEqualTo(20.0); - double expectedCount = 10.0; + double expectedCount = 20.0; for (double value : RandomUtils.randomDoubles(10, 0.0, 500.0)) { expectedCount += value;