Fix failure in AppendProcessorTests.testAppendingUniqueValueToScalar (#62453) (#63493)

This commit is contained in:
Dan Hermann 2020-10-08 10:39:57 -05:00 committed by GitHub
parent fe67d055f5
commit 0024cf33e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public class AppendProcessorTests extends ESTestCase {
String field = RandomDocumentPicks.addRandomField(random(), ingestDocument, originalValue);
List<Object> valuesToAppend = new ArrayList<>();
String newValue = randomAlphaOfLengthBetween(1, 10);
String newValue = randomValueOtherThan(originalValue, () -> randomAlphaOfLengthBetween(1, 10));
valuesToAppend.add(newValue);
Processor appendProcessor = createAppendProcessor(field, valuesToAppend, false);
appendProcessor.execute(ingestDocument);