Browse Source

[TEST] wait for ILM in testRollupNonTSIndex (#107855)

look_ahead_time is 1m, need to wait for longer than that.

Related to #103981
Kostas Krikellas 1 year ago
parent
commit
0ac10c9d1f

+ 5 - 1
x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/DownsampleActionIT.java

@@ -406,7 +406,11 @@ public class DownsampleActionIT extends ESRestTestCase {
         updatePolicy(client(), index, policy);
 
         try {
-            assertBusy(() -> assertThat(getStepKeyForIndex(client(), index), equalTo(PhaseCompleteStep.finalStep(phaseName).getKey())));
+            assertBusy(
+                () -> assertThat(getStepKeyForIndex(client(), index), equalTo(PhaseCompleteStep.finalStep(phaseName).getKey())),
+                120,
+                TimeUnit.SECONDS
+            );
             String rollupIndex = getRollupIndexName(client(), index, fixedInterval);
             assertNull("Rollup index should not have been created", rollupIndex);
             assertTrue("Source index should not have been deleted", indexExists(index));