update to 1.6
This commit is contained in:
		@@ -29,12 +29,8 @@ defmodule LokalWeb.ChannelCase do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  setup tags do
 | 
			
		||||
    :ok = Ecto.Adapters.SQL.Sandbox.checkout(Lokal.Repo)
 | 
			
		||||
 | 
			
		||||
    unless tags[:async] do
 | 
			
		||||
      Ecto.Adapters.SQL.Sandbox.mode(Lokal.Repo, {:shared, self()})
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    pid = Ecto.Adapters.SQL.Sandbox.start_owner!(Lokal.Repo, shared: not tags[:async])
 | 
			
		||||
    on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end)
 | 
			
		||||
    :ok
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -32,12 +32,8 @@ defmodule LokalWeb.ConnCase do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  setup tags do
 | 
			
		||||
    :ok = Ecto.Adapters.SQL.Sandbox.checkout(Lokal.Repo)
 | 
			
		||||
 | 
			
		||||
    unless tags[:async] do
 | 
			
		||||
      Ecto.Adapters.SQL.Sandbox.mode(Lokal.Repo, {:shared, self()})
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    pid = Ecto.Adapters.SQL.Sandbox.start_owner!(Lokal.Repo, shared: not tags[:async])
 | 
			
		||||
    on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end)
 | 
			
		||||
    {:ok, conn: Phoenix.ConnTest.build_conn()}
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -28,12 +28,8 @@ defmodule Lokal.DataCase do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  setup tags do
 | 
			
		||||
    :ok = Ecto.Adapters.SQL.Sandbox.checkout(Lokal.Repo)
 | 
			
		||||
 | 
			
		||||
    unless tags[:async] do
 | 
			
		||||
      Ecto.Adapters.SQL.Sandbox.mode(Lokal.Repo, {:shared, self()})
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    pid = Ecto.Adapters.SQL.Sandbox.start_owner!(Lokal.Repo, shared: not tags[:async])
 | 
			
		||||
    on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end)
 | 
			
		||||
    :ok
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user