Ecto 2.0 ownership timeout #myelixirstatus
Ecto 2.0, gives us concurrent testing against the DB by allowing an Elixir process to own a database connection. The default time releases the connection pretty quick, so it's not suitable for debugging anything thats non-trivial.
We can change the timeout in our
config :my_app, MyApp.Repo, adapter: Ecto.Adapters.Postgres, #... ownership_timeout: 60_000