From 0c1e1df8adc67c86e53a7738428f20de82902774 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 29 Oct 2021 22:13:44 +0200 Subject: [PATCH] events: Fix test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … wasn't failing CI because `#[test]` attribute was missing. --- crates/ruma-events/src/room/join_rules.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ruma-events/src/room/join_rules.rs b/crates/ruma-events/src/room/join_rules.rs index c6a63003..2638ab40 100644 --- a/crates/ruma-events/src/room/join_rules.rs +++ b/crates/ruma-events/src/room/join_rules.rs @@ -245,7 +245,7 @@ mod tests { #[cfg(feature = "unstable-pre-spec")] use super::AllowRule; - use super::{JoinRule, RoomJoinRulesEvent, RoomJoinRulesEventContent}; + use super::{JoinRule, RoomJoinRulesEventContent, SyncRoomJoinRulesEvent}; #[test] fn deserialize() { @@ -283,6 +283,7 @@ mod tests { } } + #[test] fn deserialize_restricted_event() { let json = r#"{ "type": "m.room.join_rules", @@ -301,6 +302,6 @@ mod tests { "event_id": "$0ACb9KSPlT3al3kikyRYvFhMqXPP9ZcQOBrsdIuh58U" }"#; - assert_matches!(serde_json::from_str::(json), Ok(_)); + assert_matches!(serde_json::from_str::(json), Ok(_)); } }