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

[2.x] Fix inter test dependencies #914

Merged
merged 2 commits into from
Jun 19, 2024
Merged

[2.x] Fix inter test dependencies #914

merged 2 commits into from
Jun 19, 2024

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Jun 19, 2024

This PR fixes some inter-test dependencies. Currently, certain tests depend on other test to be run first and can not be run individually.

Specifically, these tests rely on the container singleton to have been created by another test and to be shared between tests.

I noticed this issue when creating another PR and some unrelated tests randomly started failing with the change.

You can see these failures by running phpunit --process-isolation against the 2.x branch.

You can see the failing tests, in all their glory, in this test run (https://github.com/laravel/octane/actions/runs/9573937368/job/26396301757) which is tied to the commit that flushes the container between tests (326bdc6)

This PR includes the container flushing and individual test fixes.

@taylorotwell taylorotwell merged commit 4145a69 into laravel:2.x Jun 19, 2024
14 checks passed
@timacdonald timacdonald deleted the fix-inter-test-dependencies branch June 20, 2024 00:07
driesvints pushed a commit that referenced this pull request Jun 24, 2024
* Flush container between tests

* Ensure app is available when needed
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