summaryrefslogtreecommitdiff
path: root/test/support/conn_case.ex
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r--test/support/conn_case.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex
index a83ef3b3a..2e6707087 100644
--- a/test/support/conn_case.ex
+++ b/test/support/conn_case.ex
@@ -26,14 +26,14 @@ defmodule Pleroma.Web.ConnCase do
end
end
-
setup tags do
Cachex.clear(:user_cache)
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
+
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()})
end
+
{:ok, conn: Phoenix.ConnTest.build_conn()}
end
-
end