Fix search template request (#43509)
A seed was hit in (#43157) that caused mutateInstance to generate an identical instance. This change prevents that. Signed-off-by: Peter Nied <petern@amazon.com>
This commit is contained in:
parent
a37fc3be68
commit
3efee2e2ad
|
@ -64,8 +64,8 @@ public class SearchTemplateRequestTests extends AbstractWireSerializingTestCase<
|
|||
mutators.add(request -> request.setExplain(!request.isExplain()));
|
||||
mutators.add(request -> request.setSimulate(!request.isSimulate()));
|
||||
|
||||
mutators.add(request -> request.setRequest(
|
||||
RandomSearchRequestGenerator.randomSearchRequest(SearchSourceBuilder::searchSource)));
|
||||
mutators.add(request -> request.setRequest(randomValueOtherThan(request.getRequest(),
|
||||
() -> RandomSearchRequestGenerator.randomSearchRequest(SearchSourceBuilder::searchSource))));
|
||||
|
||||
SearchTemplateRequest mutatedInstance = copyInstance(instance);
|
||||
Consumer<SearchTemplateRequest> mutator = randomFrom(mutators);
|
||||
|
|
Loading…
Reference in New Issue