Skip to content

Commit

Permalink
Fix flaky MicrometerDoubleCounterTest (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Dec 24, 2024
1 parent f3b7877 commit b600c74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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

Expand Down

0 comments on commit b600c74

Please sign in to comment.