Skip to content

Commit 9ac4ee9

Browse files
Increase Flaky Timeout in testIlmHistoryIndexCanRollover (elastic#62353) (elastic#62402)
This busy assert easily takes about 5s on a very fast work station so the default of 10s is not sufficient here at all.
1 parent 771a889 commit 9ac4ee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/ilm/src/internalClusterTest/java/org/elasticsearch/xpack/ilm/ILMHistoryTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import java.util.Arrays;
3030
import java.util.Collection;
3131
import java.util.Collections;
32+
import java.util.concurrent.TimeUnit;
3233

3334
import static org.elasticsearch.cluster.metadata.IndexMetadata.SETTING_NUMBER_OF_REPLICAS;
3435
import static org.elasticsearch.cluster.metadata.IndexMetadata.SETTING_NUMBER_OF_SHARDS;
@@ -115,7 +116,7 @@ public void testIlmHistoryIndexCanRollover() throws Exception {
115116
//instead of failing the whole test change it to assertion error and wait some more time
116117
fail(e.getMessage());
117118
}
118-
});
119+
}, 1L, TimeUnit.MINUTES);
119120

120121
//make sure ILM is stopped so no new items will be queued in ILM history
121122
assertTrue(client().execute(StopILMAction.INSTANCE, new StopILMRequest()).actionGet().isAcknowledged());

0 commit comments

Comments
 (0)