]> Untitled Git - lemmy.git/commitdiff
Fix activity list test (#2562)
authorNutomic <me@nutomic.com>
Tue, 15 Nov 2022 22:38:26 +0000 (22:38 +0000)
committerGitHub <noreply@github.com>
Tue, 15 Nov 2022 22:38:26 +0000 (22:38 +0000)
crates/apub/src/activity_lists.rs

index 86e87a2a3cc047f16a08b947a29398f2e5077a21..c7fb51859d1cdeb0e262847a409ac5ddf900c4b2 100644 (file)
@@ -133,7 +133,12 @@ impl GetCommunity for AnnouncableActivities {
 #[cfg(test)]
 mod tests {
   use crate::{
-    activity_lists::{GroupInboxActivities, PersonInboxActivities, SiteInboxActivities},
+    activity_lists::{
+      GroupInboxActivities,
+      PersonInboxActivities,
+      PersonInboxActivitiesWithAnnouncable,
+      SiteInboxActivities,
+    },
     protocol::tests::test_parse_lemmy_item,
   };
 
@@ -151,11 +156,11 @@ mod tests {
   fn test_person_inbox() {
     test_parse_lemmy_item::<PersonInboxActivities>("assets/lemmy/activities/following/accept.json")
       .unwrap();
-    test_parse_lemmy_item::<PersonInboxActivities>(
+    test_parse_lemmy_item::<PersonInboxActivitiesWithAnnouncable>(
       "assets/lemmy/activities/create_or_update/create_note.json",
     )
     .unwrap();
-    test_parse_lemmy_item::<PersonInboxActivities>(
+    test_parse_lemmy_item::<PersonInboxActivitiesWithAnnouncable>(
       "assets/lemmy/activities/create_or_update/create_private_message.json",
     )
     .unwrap();