Clear caches on test.
This commit is contained in:
parent
f9ab38a443
commit
32ae918843
3 changed files with 3 additions and 4 deletions
|
|
@ -28,6 +28,7 @@ defmodule Pleroma.Web.ConnCase do
|
|||
|
||||
|
||||
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()})
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ defmodule Pleroma.DataCase do
|
|||
end
|
||||
|
||||
setup tags do
|
||||
Cachex.clear(:user_cache)
|
||||
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
|
||||
|
||||
unless tags[:async] do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue