update to phoenix 1.6

This commit is contained in:
2022-01-21 20:36:25 -05:00
parent f9e66d1336
commit 094e214a55
39 changed files with 621 additions and 340 deletions

View File

@ -29,12 +29,8 @@ defmodule CanneryWeb.ChannelCase do
end
setup tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Cannery.Repo)
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Cannery.Repo, {:shared, self()})
end
pid = Ecto.Adapters.SQL.Sandbox.start_owner!(Cannery.Repo, shared: not tags[:async])
on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end)
:ok
end
end