test: update obsolete test
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 25 Mar 2019 01:23:15 +0000 (01:23 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 15 May 2019 15:54:10 +0000 (15:54 +0000)
test/web/activity_pub/activity_pub_test.exs

index 0f90aa1acb072585fed756c1f745536669d8de29..b41f6ab81e28a5a2b4111c090bf5d7459ad7bb68 100644 (file)
@@ -968,7 +968,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
 
       assert length(activities) == 3
 
-      activities = ActivityPub.contain_timeline(activities, user1)
+      activities =
+        ActivityPub.fetch_activities([user1.ap_id | user1.following], %{"user" => user1})
 
       assert [public_activity, private_activity_1] == activities
       assert length(activities) == 2