projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'test/web_common_api_utils' into 'develop'
[akkoma]
/
test
/
web
/
streamer_test.exs
diff --git
a/test/web/streamer_test.exs
b/test/web/streamer_test.exs
index 95d5e5d58f6aaefd01de25e99759c8a816a0fee9..d47b37efb9815ca9142da160d3eca94b7703978c 100644
(file)
--- a/
test/web/streamer_test.exs
+++ b/
test/web/streamer_test.exs
@@
-115,9
+115,10
@@
defmodule Pleroma.Web.StreamerTest do
%{transport_pid: task.pid, assigns: %{user: user}}
)
%{transport_pid: task.pid, assigns: %{user: user}}
)
- {:ok, activity} = CommonAPI.post(user, %{"status" => "super hot take"})
{:ok, user} = User.block_domain(user, "hecking-lewd-place.com")
{:ok, user} = User.block_domain(user, "hecking-lewd-place.com")
+ {:ok, activity} = CommonAPI.post(user, %{"status" => "super hot take"})
{:ok, notif, _} = CommonAPI.favorite(activity.id, user2)
{:ok, notif, _} = CommonAPI.favorite(activity.id, user2)
+
Streamer.stream("user:notification", notif)
Task.await(task)
end
Streamer.stream("user:notification", notif)
Task.await(task)
end