Skip to content

Conversation

CharlesZKQ
Copy link

In org.springframework.data.gemfire.util.CollectionUtilsUnitTests, the tests iterableOfEnumeration() , iterableOfIterator() are all flaky due to the non-deterministic property of HashSet (please refer document). It stores value in non-determined order, so it is possible to report exception when invoking containsExactly(). I fixed by changing the HashSet to LinkedHashSet, which guarantees the order of value added into the set and eliminates the flakiness of these two tests.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants