Open zacksiri opened 4 years ago
Same here, I can have one job queue in application.ex
to start, but once I have two, or another process accessing the DB I got this error. For me this happens when running MIX_ENV=test mix ecto.reset
, tests actually work.
I'm guessing this is caused by EctoJob accessing the Repo before your test_helper.exs file gets a chance to put the DB in sandbox mode?
I have an application using EctoJob and it seems I'm getting errors when I'm using the manual sandbox mode.
This is very strange
because I have the same setup in another app and this is not happening.
I can't seem to find what's wrong
test_helper.exs
If I comment out the last line everything works.