parallel_test fails
jkraemer opened this issue · 2 comments
jkraemer commented
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.
jkraemer commented
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 commented
thank you, i merged the tests.