summaryrefslogtreecommitdiff
path: root/test/support/channel_case.ex
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-04-30 13:17:03 -0500
committerAlex Gleason <alex@alexgleason.me>2021-04-30 13:17:03 -0500
commit52fc59f125c10ad73b9fd1a0639b6dc5681776ca (patch)
tree7de32329acbdd4bdf5c753678a2d459c61b58d80 /test/support/channel_case.ex
parenta8fa00ef666f574aec8048626aed78a7d62e6915 (diff)
parent377f84f3678f9c2541fbd4a200cd93c5ab0dea24 (diff)
downloadpleroma-52fc59f125c10ad73b9fd1a0639b6dc5681776ca.tar.gz
pleroma-52fc59f125c10ad73b9fd1a0639b6dc5681776ca.zip
Merge remote-tracking branch 'upstream/develop' into earmark
Diffstat (limited to 'test/support/channel_case.ex')
-rw-r--r--test/support/channel_case.ex12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/support/channel_case.ex b/test/support/channel_case.ex
index 114184a9f..1fbf6f100 100644
--- a/test/support/channel_case.ex
+++ b/test/support/channel_case.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ChannelCase do
@@ -30,13 +30,5 @@ defmodule Pleroma.Web.ChannelCase do
end
end
- setup tags do
- :ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
-
- unless tags[:async] do
- Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()})
- end
-
- :ok
- end
+ setup tags, do: Pleroma.DataCase.setup_multi_process_mode(tags)
end