Skip to content

fix flaky test in CriteriaUnitTests #1199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

CharlesZKQ
Copy link
Contributor

In org.springframework.data.cassandra.core.query.CriteriaUnitTests, the tests shouldCreateIsInSet() is flaky due to the non-deterministic property of HashSet (please refer document).I fixed by changing the HashSet to LinkedHashSet, which guarantees the order of value added into the set and eliminates the flakiness of this test.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 22, 2021
@mp911de mp911de merged commit 1c02d4c into spring-projects:main Dec 7, 2021
@mp911de mp911de added this to the 3.4 M1 (2022.0.0) milestone Dec 7, 2021
@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 7, 2021
@mp911de
Copy link
Member

mp911de commented Dec 7, 2021

Thank you for your contribution. That's merged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants