Broadcast deleted activity id on deletion to conform to MastoAPI streamig spec

This commit is contained in:
eugenijm 2019-03-09 14:12:15 +03:00
commit 6038c8a753
6 changed files with 40 additions and 14 deletions

View file

@ -39,7 +39,15 @@ defmodule Pleroma.Web.StreamerTest do
task =
Task.async(fn ->
assert_receive {:text, _}, 4_000
expected_event =
%{
"event" => "delete",
"payload" => activity.id
}
|> Jason.encode!()
assert_receive {:text, received_event}, 4_000
assert received_event == expected_event
end)
fake_socket = %{