Skip to content

Commit

Permalink
Fix failure in AppendProcessorTests.testAppendingUniqueValueToScalar (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann authored Oct 8, 2020
1 parent fe67d05 commit 0024cf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void testAppendingUniqueValueToScalar() throws Exception {
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);
Expand Down

0 comments on commit 0024cf3

Please sign in to comment.