-
Notifications
You must be signed in to change notification settings - Fork 45
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
** (DBConnection.OwnershipError) cannot find ownership process for #PID #128
Comments
After reading: https://hexdocs.pm/ecto_sql/Ecto.Adapters.SQL.Sandbox.html Add the following code to the top of the test:
Now the test runs as expected:
|
@nelsonic Had this problem myself what do you think? EDIT: oops I guess its |
@HoffsMH good thinking! 💡 |
Thank's @nelsonic ! |
Because I ran into an intermittent error with this, it's worth noting: when you're implicitly affecting a repo controlled by another module in a test, you'll still need to do an explicit |
When attempting to create/run a test that inserts data:
attempting to run it with the command:
I get the following error:
Obviously the
Useragent.insert
works when I run the appmix phx.server
...But the test does not run because it does not have ownership of the connection ... 😞
The text was updated successfully, but these errors were encountered: