From b10d812dcfabc91677a99e0d09224ef35d6447cb Mon Sep 17 00:00:00 2001 From: Craig Taverner Date: Tue, 19 Dec 2023 17:34:06 +0100 Subject: [PATCH] Fix test where there can be duplicated hashcodes --- .../elasticsearch/compute/operator/MultivalueDedupeTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/MultivalueDedupeTests.java b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/MultivalueDedupeTests.java index 8db9a53dc9e12..001e95644e7c0 100644 --- a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/MultivalueDedupeTests.java +++ b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/MultivalueDedupeTests.java @@ -392,7 +392,7 @@ private void assertHash( actualValues.add(lookup.apply(hashes.getInt(i) - 1)); } List values = v.stream().map(valueMapper).toList(); - assertThat(actualValues, containsInAnyOrder(new HashSet<>(values).stream().sorted().toArray())); + assertThat(new HashSet<>(actualValues), containsInAnyOrder(new HashSet<>(values).toArray())); allValues.addAll(values); }