summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-09-16 09:09:32 +0000
committerkaniini <ariadne@dereferenced.org>2019-09-16 09:09:32 +0000
commitfe7fd331263007e0fb2877ef7370a09a9704da36 (patch)
tree3e4ed9af085e410ebab1adbb6ecc1d9cd84f3e42 /test/notification_test.exs
parent4fabf83ad01352442906d79187aeab4c777f4df8 (diff)
parentc623b4324deaf236334a0f77a81435b5bffadf3c (diff)
downloadpleroma-fe7fd331263007e0fb2877ef7370a09a9704da36.tar.gz
pleroma-fe7fd331263007e0fb2877ef7370a09a9704da36.zip
Merge branch 'revert-4fabf83a' into 'develop'
Revert "Merge branch 'streamer-refactoring' into 'develop'" See merge request pleroma/pleroma!1674
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index 3d2f9a8fc..3be9db09b 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -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)