summaryrefslogtreecommitdiff
path: root/test/support/channel_case.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2021-01-26 14:24:32 +0000
committerlain <lain@soykaf.club>2021-01-26 14:24:32 +0000
commit229acae6c3da541ebb0438cb7f310cdce1df92b3 (patch)
tree8b93f46ac090021e7e53db392ba54a3c48b31fda /test/support/channel_case.ex
parent71166b30a42ad3a8988049992bcab93c7e2ed656 (diff)
parent250e2020987b1fc65251ba9564e41b38ba060391 (diff)
downloadpleroma-229acae6c3da541ebb0438cb7f310cdce1df92b3.tar.gz
pleroma-229acae6c3da541ebb0438cb7f310cdce1df92b3.zip
Merge branch 'develop' into '2435-list-multiple-users'
# Conflicts: # CHANGELOG.md
Diffstat (limited to 'test/support/channel_case.ex')
-rw-r--r--test/support/channel_case.ex16
1 files changed, 1 insertions, 15 deletions
diff --git a/test/support/channel_case.ex b/test/support/channel_case.ex
index 6888984a2..1fbf6f100 100644
--- a/test/support/channel_case.ex
+++ b/test/support/channel_case.ex
@@ -30,19 +30,5 @@ defmodule Pleroma.Web.ChannelCase do
end
end
- setup tags do
- :ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
-
- if tags[:async] do
- Mox.stub_with(Pleroma.CachexMock, Pleroma.NullCache)
- Mox.set_mox_private()
- else
- Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()})
- Mox.stub_with(Pleroma.CachexMock, Pleroma.CachexProxy)
- Mox.set_mox_global()
- Pleroma.DataCase.clear_cachex()
- end
-
- :ok
- end
+ setup tags, do: Pleroma.DataCase.setup_multi_process_mode(tags)
end