Skip to content

Commit 2c3a0f5

Browse files
authored
Increase time in IntervalThrottlerTests (#120344)
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 #120023
1 parent 1e19596 commit 2c3a0f5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,6 @@ tests:
220220
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
221221
method: test {p0=transform/transforms_unattended/Test unattended put and start}
222222
issue: https://github.com/elastic/elasticsearch/issues/120019
223-
- class: org.elasticsearch.index.mapper.IntervalThrottlerTests
224-
method: testThrottling
225-
issue: https://github.com/elastic/elasticsearch/issues/120023
226223
- class: org.elasticsearch.xpack.ilm.actions.SearchableSnapshotActionIT
227224
method: testUpdatePolicyToAddPhasesYieldsInvalidActionsToBeSkipped
228225
issue: https://github.com/elastic/elasticsearch/issues/118406

server/src/test/java/org/elasticsearch/index/mapper/IntervalThrottlerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
public class IntervalThrottlerTests extends ESTestCase {
1515

1616
public void testThrottling() throws Exception {
17-
var throttler = new IntervalThrottler.Acceptor(10);
17+
var throttler = new IntervalThrottler.Acceptor(100);
1818
assertTrue(throttler.accept());
1919
assertFalse(throttler.accept());
2020
assertFalse(throttler.accept());
2121

22-
Thread.sleep(20);
22+
Thread.sleep(110);
2323
assertTrue(throttler.accept());
2424
assertFalse(throttler.accept());
2525
assertFalse(throttler.accept());

0 commit comments

Comments
 (0)