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 spec for Spree::ShippingMethod#available_to_store #4313

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Mar 22, 2022

This spec had subject and expectations somehow mixed up (at least in my
mind), and it did fail occasionally, probably because of that.

See https://app.circleci.com/pipelines/github/solidusio/solidus/3095/workflows/16ada36d-0342-4b15-9e38-cde85df111a2/jobs/28315/tests#failed-test-0

Checklist:

This spec had subject and expectations somehow mixed up (at least in my
mind), and it did fail occasionally.

The real fix though seems to be exchanging the `eq` matchers with
`match_array`, which doesn't care about order.

See https://app.circleci.com/pipelines/github/solidusio/solidus/3095/workflows/16ada36d-0342-4b15-9e38-cde85df111a2/jobs/28315/tests#failed-test-0
@mamhoff mamhoff force-pushed the fix-flaky-shipping-method-spec branch from ef8b50c to d08d961 Compare March 22, 2022 18:50
@jarednorman
Copy link
Member

Thanks Martin!

@tvdeyen tvdeyen merged commit c8c9306 into solidusio:master Mar 23, 2022
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.

3 participants