Skip to content

Commit

Permalink
Increase time in IntervalThrottlerTests (elastic#120344) (elastic#120574
Browse files Browse the repository at this point in the history
)

We suspect that something in the test environment is causing more than
10ms to pass between some of the calls so increasing to 100 for now to
verify

Closes elastic#120023
  • Loading branch information
limotova authored Jan 22, 2025
1 parent 43df7d7 commit 280ab31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
public class IntervalThrottlerTests extends ESTestCase {

public void testThrottling() throws Exception {
var throttler = new IntervalThrottler.Acceptor(10);
var throttler = new IntervalThrottler.Acceptor(100);
assertTrue(throttler.accept());
assertFalse(throttler.accept());
assertFalse(throttler.accept());

Thread.sleep(20);
Thread.sleep(110);
assertTrue(throttler.accept());
assertFalse(throttler.accept());
assertFalse(throttler.accept());
Expand Down

0 comments on commit 280ab31

Please sign in to comment.