Revert "Merge branch 'streamer-refactoring' into 'develop'"

This reverts merge request !1653
This commit is contained in:
kaniini 2019-09-16 09:09:21 +00:00
commit c623b4324d
26 changed files with 447 additions and 888 deletions

View file

@ -69,7 +69,16 @@ defmodule Pleroma.NotificationTest do
end
describe "create_notification" do
@tag needs_streamer: true
setup do
GenServer.start(Streamer, %{}, name: Streamer)
on_exit(fn ->
if pid = Process.whereis(Streamer) do
Process.exit(pid, :kill)
end
end)
end
test "it creates a notification for user and send to the 'user' and the 'user:notification' stream" do
user = insert(:user)
task = Task.async(fn -> assert_receive {:text, _}, 4_000 end)