Skip to content
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

Fix flaky test JSONDocApiAuthBuilderTest#testApiAuthToken #261

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

hsiangawang
Copy link

The test JSONDocApiAuthBuilderTest#testApiAuthToken compares the result of apiDoc.getAuth().getTesttokens() to a hard-coded string based on a specific order of entries in HashSet. However, these classes do not guarantee that order, and the assertion can fail if the order differs.

The PR uses LinkedHashSet to make the order deterministic.

@fabiomaffioletti fabiomaffioletti merged commit 3b3907f into fabiomaffioletti:master Jan 5, 2021
@fabiomaffioletti
Copy link
Owner

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants