laravel parallel testing with multiple databases - getConnection() (bug?) #47818
Unanswered
davidcorreia
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
By using the parallel testing with a multiple database setup, after getting the
main_db_test_N
&second_db_test_N
(where the N is the number os the process) everyassertDatabaseHas
failsi have followed this article https://sarahjting.com/blog/laravel-paratest-multiple-db-connections
I believe the problem is with the
getConnection()
also, if we access this information using the models
Can anyone confirm this is not the expected behavior?
php: 8.1.7
laravel: 9.52.6
command: php artisan test --parallel --processes=4
Beta Was this translation helpful? Give feedback.
All reactions