Fix failure in AppendProcessorTests.testAppendingToListWithDuplicatesDisallowed (#62842) (#63499)

This commit is contained in:
Dan Hermann 2020-10-08 13:15:29 -05:00 committed by GitHub
parent 943fcaf970
commit f822bb732c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public class AppendProcessorTests extends ESTestCase {
.collect(Collectors.toSet());
// create a set using the new values making sure there are no overlapping values already present in the existing values
Set<String> nonexistingValues = Sets.difference(newValues, new HashSet<>(existingValues));
Set<String> nonexistingValues = Sets.difference(newValues, new HashSet<>(list));
List<String> valuesToAppend = new ArrayList<>(existingValues);
valuesToAppend.addAll(nonexistingValues);
expectedValues.addAll(nonexistingValues);