fix retryrequest test

This commit is contained in:
Tal Levy 2018-06-13 16:04:54 -07:00
parent 11ef3b90a3
commit b9e1a905eb
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import org.elasticsearch.test.AbstractStreamableTestCase;
import org.elasticsearch.xpack.core.indexlifecycle.action.RetryAction.Request;
import java.io.IOException;
import java.util.Arrays;
public class RetryRequestTests extends AbstractStreamableTestCase<Request> {
@ -34,7 +35,8 @@ public class RetryRequestTests extends AbstractStreamableTestCase<Request> {
IndicesOptions indicesOptions = instance.indicesOptions();
switch (between(0, 1)) {
case 0:
indices = generateRandomStringArray(20, 10, false);
indices = randomValueOtherThanMany(i -> Arrays.equals(i, instance.indices()),
() -> generateRandomStringArray(20, 10, false, true));
break;
case 1:
indicesOptions = randomValueOtherThan(indicesOptions, () -> IndicesOptions.fromOptions(randomBoolean(), randomBoolean(),