projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ForceBotUnlistedPolicy: try to fix test
[akkoma]
/
test
/
support
/
data_case.ex
diff --git
a/test/support/data_case.ex
b/test/support/data_case.ex
index f3d98e7e3173f46bf19bbd7b2c3235eaa2b0291d..ba8848952e11b0d7e7e7895f05b8099194a7177f 100644
(file)
--- a/
test/support/data_case.ex
+++ b/
test/support/data_case.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
18
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.DataCase do
# 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
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
:ok
end