mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-18 19:05:06 +00:00
This commit is contained in:
parent
943fcaf970
commit
f822bb732c
@ -208,7 +208,7 @@ public class AppendProcessorTests extends ESTestCase {
|
|||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
|
|
||||||
// create a set using the new values making sure there are no overlapping values already present in the existing values
|
// 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);
|
List<String> valuesToAppend = new ArrayList<>(existingValues);
|
||||||
valuesToAppend.addAll(nonexistingValues);
|
valuesToAppend.addAll(nonexistingValues);
|
||||||
expectedValues.addAll(nonexistingValues);
|
expectedValues.addAll(nonexistingValues);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user