Revert "Merge branch 'revert-4fabf83a' into 'develop'"

This reverts commit fe7fd33126, reversing
changes made to 4fabf83ad0.
This commit is contained in:
Egor Kislitsyn 2019-09-16 17:03:37 +07:00
commit 96816ceaa2
26 changed files with 888 additions and 447 deletions

View file

@ -69,16 +69,7 @@ defmodule Pleroma.NotificationTest do
end
describe "create_notification" do
setup do
GenServer.start(Streamer, %{}, name: Streamer)
on_exit(fn ->
if pid = Process.whereis(Streamer) do
Process.exit(pid, :kill)
end
end)
end
@tag needs_streamer: true
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)