X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapub%2Fsrc%2Fprotocol%2Factivities%2Fvoting%2Fmod.rs;h=26a9d01a21786d2148c6365a7a990500507a2bdc;hb=92568956353f21649ed9aff68b42699c9d036f30;hp=48e30f0b1c90e3e69b3db23e4104b097d96311bc;hpb=1bec551945a310cd34539da80e2f5e4139be32af;p=lemmy.git diff --git a/crates/apub/src/protocol/activities/voting/mod.rs b/crates/apub/src/protocol/activities/voting/mod.rs index 48e30f0b..26a9d01a 100644 --- a/crates/apub/src/protocol/activities/voting/mod.rs +++ b/crates/apub/src/protocol/activities/voting/mod.rs @@ -3,19 +3,22 @@ pub mod vote; #[cfg(test)] mod tests { + #![allow(clippy::unwrap_used)] + #![allow(clippy::indexing_slicing)] + use crate::protocol::{ activities::voting::{undo_vote::UndoVote, vote::Vote}, tests::test_parse_lemmy_item, }; - use serial_test::serial; - #[actix_rt::test] - #[serial] - async fn test_parse_lemmy_voting() { - test_parse_lemmy_item::("assets/lemmy/activities/voting/like_note.json"); - test_parse_lemmy_item::("assets/lemmy/activities/voting/dislike_page.json"); + #[test] + fn test_parse_lemmy_voting() { + test_parse_lemmy_item::("assets/lemmy/activities/voting/like_note.json").unwrap(); + test_parse_lemmy_item::("assets/lemmy/activities/voting/dislike_page.json").unwrap(); - test_parse_lemmy_item::("assets/lemmy/activities/voting/undo_like_note.json"); - test_parse_lemmy_item::("assets/lemmy/activities/voting/undo_dislike_page.json"); + test_parse_lemmy_item::("assets/lemmy/activities/voting/undo_like_note.json") + .unwrap(); + test_parse_lemmy_item::("assets/lemmy/activities/voting/undo_dislike_page.json") + .unwrap(); } }