summaryrefslogtreecommitdiff
path: root/test/support/channel_case.ex
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2021-01-19 00:23:39 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2021-01-19 00:23:39 +0300
commit318d6dde1c6cb0c3d6c9e31b976d71de8c721d8d (patch)
tree09aa683b6e966896d5fb5dd50d75c2d723308ded /test/support/channel_case.ex
parent958a7f6ed071a5bfd0ea92c602fe0ee876c1e4c6 (diff)
downloadpleroma-318d6dde1c6cb0c3d6c9e31b976d71de8c721d8d.tar.gz
pleroma-318d6dde1c6cb0c3d6c9e31b976d71de8c721d8d.zip
Mox mode setup tweak; refactoring.
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