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 caused by querying solr for admin set with a nil id #5571

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

dlpierce
Copy link
Contributor

presenter.total_items queries solr using the admin set id, but a built (not created) admin set has a nil id. This leads to flaky spec failures depending on the random order specs are run. Using create should avoid this.

Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇 This one was tripping me up too! Thanks for fixing it!

@dlpierce dlpierce merged commit 739920c into main Mar 24, 2022
@dlpierce dlpierce deleted the fix_flaky_empty_admin_set_spec branch March 24, 2022 13:44
@dlpierce dlpierce added the notes-bugfix Release Notes: Fixed a bug label Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants