From 801dcf2c23d07c23f074a536684c62a4337442c9 Mon Sep 17 00:00:00 2001 From: Kostas Krikellas Date: Wed, 24 Apr 2024 18:25:21 +0300 Subject: [PATCH] [TEST] wait for ILM in testRollupNonTSIndex --- .../elasticsearch/xpack/ilm/actions/DownsampleActionIT.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/DownsampleActionIT.java b/x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/DownsampleActionIT.java index 5ca5da555718b..15a370e994583 100644 --- a/x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/DownsampleActionIT.java +++ b/x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/DownsampleActionIT.java @@ -406,7 +406,11 @@ public void testRollupNonTSIndex() throws Exception { 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));