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

Ensures managers are not shared within tests #196

Merged
merged 2 commits into from
Dec 21, 2021

Conversation

theofidry
Copy link
Owner

This is probably one of the most sneaky and subtle aspect which potentially resulted in flaky tests. Indeed an entity manager does not only contain a connection (which unless you change it causes little issues) but also the UnitOfWork which contains a lot of internal state which sometimes we tamper with or for which the metadata changes from a test to another (which is no good if the old metadata is cached by doctrine somewhere).

In this PR we guarantee that the managers & co. are always fresh

@theofidry theofidry merged commit 276a793 into master Dec 21, 2021
@theofidry theofidry deleted the bugfix/shared-managers branch December 21, 2021 10:39
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.

1 participant