summaryrefslogtreecommitdiff
path: root/test/support/conn_case.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-12-18 11:53:43 +0100
committerlain <lain@soykaf.club>2020-12-18 11:53:43 +0100
commitc1129ff6746b20b164b7bc6dadf851f396ef29ad (patch)
treec767bda4198de336115df267f9224878544df169 /test/support/conn_case.ex
parent6bb4f4e1721d30762978b59a1aed11137223c183 (diff)
downloadpleroma-c1129ff6746b20b164b7bc6dadf851f396ef29ad.tar.gz
pleroma-c1129ff6746b20b164b7bc6dadf851f396ef29ad.zip
Tests: Reset all cachex caches between synchronous tests
Don't bother in the async case, it doesn't make sense there.
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r--test/support/conn_case.ex3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex
index 47cb65a80..b5bd71809 100644
--- a/test/support/conn_case.ex
+++ b/test/support/conn_case.ex
@@ -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