Tests: Reset all cachex caches between synchronous tests
Don't bother in the async case, it doesn't make sense there.
This commit is contained in:
parent
6bb4f4e172
commit
c1129ff674
2 changed files with 19 additions and 4 deletions
|
|
@ -116,12 +116,11 @@ defmodule Pleroma.Web.ConnCase do
|
|||
end
|
||||
|
||||
setup tags do
|
||||
Cachex.clear(:user_cache)
|
||||
Cachex.clear(:object_cache)
|
||||
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
|
||||
|
||||
unless tags[:async] do
|
||||
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()})
|
||||
Pleroma.DataCase.clear_cachex()
|
||||
end
|
||||
|
||||
if tags[:needs_streamer] do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue