From 2c3a0f5303e836f09fb39b2be1d3f46ce27f4ec4 Mon Sep 17 00:00:00 2001 From: Larisa Motova Date: Fri, 17 Jan 2025 16:12:02 -1000 Subject: [PATCH] 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 --- muted-tests.yml | 3 --- .../elasticsearch/index/mapper/IntervalThrottlerTests.java | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index a6af89cef8d47..342b2668927f9 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -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 diff --git a/server/src/test/java/org/elasticsearch/index/mapper/IntervalThrottlerTests.java b/server/src/test/java/org/elasticsearch/index/mapper/IntervalThrottlerTests.java index 25fd614524441..399c97260ceb4 100644 --- a/server/src/test/java/org/elasticsearch/index/mapper/IntervalThrottlerTests.java +++ b/server/src/test/java/org/elasticsearch/index/mapper/IntervalThrottlerTests.java @@ -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());