X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fsupport%2Fdata_case.ex;h=ba8848952e11b0d7e7e7895f05b8099194a7177f;hb=e18958a5d7ed2d31026ee921dfcc0501b5d2881b;hp=f3d98e7e3173f46bf19bbd7b2c3235eaa2b0291d;hpb=9169f331b6d481a0aa2b0bfe91500d695fb1b6d6;p=akkoma
diff --git a/test/support/data_case.ex b/test/support/data_case.ex
index f3d98e7e3..ba8848952 100644
--- a/test/support/data_case.ex
+++ b/test/support/data_case.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2018 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.DataCase do
@@ -39,6 +39,14 @@ defmodule Pleroma.DataCase do
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, {:shared, self()})
end
+ if tags[:needs_streamer] do
+ start_supervised(%{
+ id: Pleroma.Web.Streamer.registry(),
+ start:
+ {Registry, :start_link, [[keys: :duplicate, name: Pleroma.Web.Streamer.registry()]]}
+ })
+ end
+
:ok
end