Skip to content

Commit

Permalink
refactor(crypto) Remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Nov 29, 2024
1 parent f9a6f32 commit 16fa3cd
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions crates/matrix-sdk-crypto/src/types/events/utd_cause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,6 @@ mod tests {

use crate::types::events::{utd_cause::CryptoContextInfo, UtdCause};

#[test]
fn test_a_missing_raw_event_means_we_guess_unknown() {
// When we don't provide any JSON to check for membership, then we guess the UTD
// is unknown.
assert_eq!(
UtdCause::determine(
&raw_event(json!({})),
device_new_with_backup(),
&missing_megolm_session()
),
UtdCause::Unknown
);
}

#[test]
fn test_if_there_is_no_membership_info_we_guess_unknown() {
// If our JSON contains no membership info, then we guess the UTD is unknown.
Expand Down

0 comments on commit 16fa3cd

Please sign in to comment.