Skip to content

Commit

Permalink
review_comment: supply non-empty events
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Dec 2, 2024
1 parent 914b7cd commit 94d60a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/matrix-sdk-crypto/src/types/events/utd_cause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,14 @@ mod tests {
fn test_old_devices_dont_cause_historical_utds() {
// If the device is old, we say this UTD is unexpected (missing megolm session)
assert_eq!(
UtdCause::determine(
&raw_event(json!({})),
device_old_with_backup(),
&missing_megolm_session()
),
UtdCause::determine(&utd_event(), device_old_with_backup(), &missing_megolm_session()),
UtdCause::Unknown
);

// Same for unknown megolm message index
assert_eq!(
UtdCause::determine(
&raw_event(json!({})),
&utd_event(),
device_old_with_backup(),
&unknown_megolm_message_index()
),
Expand Down

0 comments on commit 94d60a0

Please sign in to comment.