File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
modules/ingest-common/src/test/java/org/elasticsearch/ingest/common Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ public void testCopyFromOtherField() throws Exception {
185185
186186 // generate values, add some to a target field, the rest to a source field
187187 int size = randomIntBetween (0 , 10 );
188- List <String > allValues = Stream .generate (() -> randomAlphaOfLengthBetween (1 , 10 )).limit (size ).collect (Collectors .toList ());
188+ Set <String > allValues = Stream .generate (() -> randomAlphaOfLengthBetween (1 , 10 )).limit (size ).collect (Collectors .toSet ());
189189 List <String > originalValues = randomSubsetOf (allValues );
190190 List <String > additionalValues = new ArrayList <>(Sets .difference (new HashSet <>(allValues ), new HashSet <>(originalValues )));
191191 List <String > targetFieldValue = new ArrayList <>(originalValues );
You can’t perform that action at this time.
0 commit comments