Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ tests:
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
method: test {p0=transform/transforms_unattended/Test unattended put and start}
issue: https://github.com/elastic/elasticsearch/issues/120019
- class: org.elasticsearch.index.mapper.IntervalThrottlerTests
method: testThrottling
issue: https://github.com/elastic/elasticsearch/issues/120023
- class: org.elasticsearch.xpack.ilm.actions.SearchableSnapshotActionIT
method: testUpdatePolicyToAddPhasesYieldsInvalidActionsToBeSkipped
issue: https://github.com/elastic/elasticsearch/issues/118406
Expand Down
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