Skip to content

Commit

Permalink
Fix test where there can be duplicated hashcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaverner committed Dec 20, 2023
1 parent 5cd0eba commit b10d812
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private void assertHash(
actualValues.add(lookup.apply(hashes.getInt(i) - 1));
}
List<Object> 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);
}

Expand Down

0 comments on commit b10d812

Please sign in to comment.