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

parallel_test fails #427

Closed
jkraemer opened this issue Nov 21, 2023 · 2 comments
Closed

parallel_test fails #427

jkraemer opened this issue Nov 21, 2023 · 2 comments

Comments

@jkraemer
Copy link
Contributor

I have tried with PostgreSQL 11 as well as MariaDB 11, both seem to never pass this test case. Example logs attached.

I have tried to debug it with psql and to me it looks like it's more an issue with the test infrastructure than with the library itself. Apparently data created in one test case leaks into the next and / or the worker threads do not "see" records created in the main thread.

At this point I'd basically like to know if I am doing something wrong or if this is something that needs to be fixed.

postgres_11.log
mariadb_11.log

@jkraemer
Copy link
Contributor Author

setting the DatabaseCleaner strategy to :truncation instead of :transaction in test/test_helper.rb seems to fix this. I added this to my PR #426

@seuros
Copy link
Member

seuros commented Jan 16, 2024

thank you, i merged the tests.

@seuros seuros closed this as completed Jan 16, 2024
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

No branches or pull requests

2 participants