diff options
author | lain <lain@soykaf.club> | 2018-03-30 15:01:53 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-03-30 15:01:53 +0200 |
commit | 4afbef39f49948ddd3b1cd1bbda58ff7e3ac2785 (patch) | |
tree | 6959e12d9058c981f3b69c77b8b0290049651cd6 /test/support/conn_case.ex | |
parent | 480932c8e524e1a80c9c8ef1a1aa23379f633afe (diff) | |
download | pleroma-4afbef39f49948ddd3b1cd1bbda58ff7e3ac2785.tar.gz pleroma-4afbef39f49948ddd3b1cd1bbda58ff7e3ac2785.zip |
Format the code.
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r-- | test/support/conn_case.ex | 4 |
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 |