projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'ogg-theora-detection' into 'develop'
[akkoma]
/
test
/
support
/
conn_case.ex
diff --git
a/test/support/conn_case.ex
b/test/support/conn_case.ex
index 8d6969855fb4c91f9bc93132912bb7b61ea3db25..2e6707087f623d75c0c8ac3ef51e05608d83f91d 100644
(file)
--- a/
test/support/conn_case.ex
+++ b/
test/support/conn_case.ex
@@
-26,13
+26,14
@@
defmodule Pleroma.Web.ConnCase do
end
end
end
end
-
setup tags do
setup tags do
+ Cachex.clear(:user_cache)
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
+
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()})
end
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()})
end
+
{:ok, conn: Phoenix.ConnTest.build_conn()}
end
{:ok, conn: Phoenix.ConnTest.build_conn()}
end
-
end
end