aboutsummaryrefslogtreecommitdiff
path: root/test/support/conn_case.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-07 14:45:20 +0200
committerlain <lain@soykaf.club>2020-05-07 14:45:20 +0200
commitf0c22df2265e922a66ca69c3508fe812b8e20b6b (patch)
treebe510abc9cc9154e07b2ec9eaf344e6e4e88bed1 /test/support/conn_case.ex
parent92caae592338a3ca307686e7644f2de18bb57ce5 (diff)
parent4c92dfb73ef1f40438adf5da009499205a677912 (diff)
downloadpleroma-f0c22df2265e922a66ca69c3508fe812b8e20b6b.tar.gz
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into feature/undo-validator-reduced
Diffstat (limited to 'test/support/conn_case.ex')
-rw-r--r--test/support/conn_case.ex8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex
index fa30a0c41..b23918dd1 100644
--- a/test/support/conn_case.ex
+++ b/test/support/conn_case.ex
@@ -74,7 +74,7 @@ defmodule Pleroma.Web.ConnCase do
status = Plug.Conn.Status.code(status)
unless lookup[op_id].responses[status] do
- err = "Response schema not found for #{conn.status} #{conn.method} #{conn.request_path}"
+ err = "Response schema not found for #{status} #{conn.method} #{conn.request_path}"
flunk(err)
end
@@ -139,7 +139,11 @@ defmodule Pleroma.Web.ConnCase do
end
if tags[:needs_streamer] do
- start_supervised(Pleroma.Web.Streamer.supervisor())
+ start_supervised(%{
+ id: Pleroma.Web.Streamer.registry(),
+ start:
+ {Registry, :start_link, [[keys: :duplicate, name: Pleroma.Web.Streamer.registry()]]}
+ })
end
{:ok, conn: Phoenix.ConnTest.build_conn()}