Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed May 31, 2023
1 parent 59f431d commit c3a8ae7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,10 @@ void publishTimeIsRandomizedWithinStep() {
assertThat(delay).isBetween(minOffsetMillis, maxOffsetMillis - 1);
observedDelays.add(delay);
});
Long[] expectedDelays = LongStream.range(minOffsetMillis, maxOffsetMillis)
List<Long> expectedDelays = LongStream.range(minOffsetMillis, maxOffsetMillis)
.boxed()
.collect(Collectors.toList())
.toArray(new Long[0]);
assertThat(observedDelays).containsExactly(expectedDelays);
.collect(Collectors.toList());
assertThat(observedDelays).containsExactlyElementsOf(expectedDelays);
}

private static class OverlappingStepMeterRegistry extends StepMeterRegistry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ void scheduledRollOver() {
.register(registry);
FunctionTimer functionTimer = FunctionTimer.builder("timer.function", this, obj -> 3, obj -> 53, MILLISECONDS)
.register(registry);
Gauge.builder("gauge", () -> 12).register(registry);

// before rollover
assertThat(counter.count()).isZero();
Expand Down

0 comments on commit c3a8ae7

Please sign in to comment.