From f822bb732c97ab6d0a6436fef91ec528eeff3688 Mon Sep 17 00:00:00 2001 From: Dan Hermann Date: Thu, 8 Oct 2020 13:15:29 -0500 Subject: [PATCH] Fix failure in AppendProcessorTests.testAppendingToListWithDuplicatesDisallowed (#62842) (#63499) --- .../org/elasticsearch/ingest/common/AppendProcessorTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/AppendProcessorTests.java b/modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/AppendProcessorTests.java index cef7800e502..67c7a2d87b2 100644 --- a/modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/AppendProcessorTests.java +++ b/modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/AppendProcessorTests.java @@ -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 nonexistingValues = Sets.difference(newValues, new HashSet<>(existingValues)); + Set nonexistingValues = Sets.difference(newValues, new HashSet<>(list)); List valuesToAppend = new ArrayList<>(existingValues); valuesToAppend.addAll(nonexistingValues); expectedValues.addAll(nonexistingValues);