We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aaa728 commit 1cf7ad0Copy full SHA for 1cf7ad0
x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleRunnerTests.java
@@ -554,7 +554,8 @@ public void testGetCurrentStep() {
554
555
public void testMoveClusterStateToNextStep() {
556
String indexName = "my_index";
557
- LifecyclePolicy policy = LifecyclePolicyTests.randomTestLifecyclePolicy("policy");
+ LifecyclePolicy policy = randomValueOtherThanMany(p -> p.getPhases().size() == 0,
558
+ () -> LifecyclePolicyTests.randomTestLifecyclePolicy("policy"));
559
Phase nextPhase = policy.getPhases().values().stream().findFirst().get();
560
List<LifecyclePolicyMetadata> policyMetadatas = Collections.singletonList(
561
new LifecyclePolicyMetadata(policy, Collections.emptyMap()));
0 commit comments