aboutsummaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-13 08:12:09 +0000
committerlain <lain@soykaf.club>2020-05-13 08:12:09 +0000
commita5ccb5b0b1032b102c54d4df2e17c61423089e73 (patch)
tree48f8014dbdd9deb8b9aae1d894344c039c203918 /test/notification_test.exs
parenta6283bbae13a873af969336bd4e62011777a1a70 (diff)
parent2906cbbd40ea07c2ceb4d67e1c889cc7ab8b7662 (diff)
downloadpleroma-2.0.5.tar.gz
Merge branch 'release/2.0.5' into 'stable'v2.0.5
Release/2.0.5 See merge request pleroma/secteam/pleroma!4
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index e12418db3..d04754a9d 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -164,12 +164,13 @@ defmodule Pleroma.NotificationTest do
user = insert(:user)
task = Task.async(fn -> assert_receive {:text, _}, 4_000 end)
task_user_notification = Task.async(fn -> assert_receive {:text, _}, 4_000 end)
- Streamer.add_socket("user", %{transport_pid: task.pid, assigns: %{user: user}})
- Streamer.add_socket(
- "user:notification",
- %{transport_pid: task_user_notification.pid, assigns: %{user: user}}
- )
+ Streamer.get_topic_and_add_socket("user", %{transport_pid: task.pid, assigns: %{user: user}})
+
+ Streamer.get_topic_and_add_socket("user:notification", %{
+ transport_pid: task_user_notification.pid,
+ assigns: %{user: user}
+ })
activity = insert(:note_activity)