diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2021-01-19 00:23:39 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2021-01-19 00:23:39 +0300 |
commit | 318d6dde1c6cb0c3d6c9e31b976d71de8c721d8d (patch) | |
tree | 09aa683b6e966896d5fb5dd50d75c2d723308ded /test/support/channel_case.ex | |
parent | 958a7f6ed071a5bfd0ea92c602fe0ee876c1e4c6 (diff) | |
download | pleroma-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.ex | 16 |
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 |