small medium large xlarge

Generic-user-small
06 Jul 2017, 04:37
Alexis Candelaria (1 post)

updating test/models/user_repo_test.exs to use a restart test transaction db connection but I get the following error:

(UndefinedFunctionError) function Ecto.Adapters.SQL.restart_test_transaction/2 is undefined or private.
Generic-user-small
18 Sep 2017, 14:50
JORDI TUDELA CUADRAS (1 post)

As said in http://blog.plataformatec.com.br/2016/02/ecto-2-0-0-beta-0-is-out/

replace:

unless tags[:async] do
  Ecto.Adapters.SQL.restart_test_transaction(Demo.Repo, [])
end

by

:ok = Ecto.Adapters.SQL.Sandbox.checkout(Demo.Repo)
You must be logged in to comment