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

[HotFix][Behat][API] Fix suddenly failing tests #13879

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

coldic3
Copy link
Contributor

@coldic3 coldic3 commented Apr 15, 2022

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Sometimes there is a need to resend a request if the last response has been overwritten.

@coldic3 coldic3 requested a review from a team as a code owner April 15, 2022 07:24
@coldic3 coldic3 force-pushed the fix/viewing-products-behat-tests branch from c1f4638 to 836ed3b Compare April 15, 2022 07:26
Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

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

It appears to me to be quite a smell in the design. If we are "resending" something, that is stateful within the object, because the returned value was overridden. To fix this issue, I would recommend sending a proper request before making checks and in another round removal of the statefulness of clients at all

@lchrusciel lchrusciel changed the title [Behat][API] Fix suddenly failing tests [HotFix][Behat][API] Fix suddenly failing tests Apr 15, 2022
@lchrusciel lchrusciel added API APIs related issues and PRs. Bug Confirmed bugs or bugfixes. labels Apr 15, 2022
@lchrusciel lchrusciel merged commit a4144c7 into Sylius:master Apr 15, 2022
@lchrusciel
Copy link
Member

Thank you, Kevin! 🎉

@coldic3 coldic3 deleted the fix/viewing-products-behat-tests branch April 15, 2022 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs. Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants