Skip to content

Commit

Permalink
Fix flaky SlidingWindowTest#testRotate
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Schroevers <[email protected]>
  • Loading branch information
Stephan202 committed Dec 22, 2024
1 parent aa8cf5f commit fabb5d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void assertValues(double... expectedValues) {
private SlidingWindow<Observer> ringBuffer;
private final long maxAgeSeconds = 30;
private final int ageBuckets = 5;
private final long timeBetweenRotateMillis = maxAgeSeconds * 1000 / ageBuckets + 2;
private final long timeBetweenRotateMillis = maxAgeSeconds * 1000 / ageBuckets;

@BeforeEach
public void setUp() {
Expand Down

0 comments on commit fabb5d7

Please sign in to comment.