Skip to content

Commit c5a8ec9

Browse files
committed
Rename test variables
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
1 parent cd0a6ea commit c5a8ec9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/matrix-sdk-crypto/src/olm/account.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,12 +1529,12 @@ mod tests {
15291529
let (_, second_one_time_keys, _) = account.keys_for_upload();
15301530
assert!(!second_one_time_keys.is_empty());
15311531

1532-
let device_key_ids: BTreeSet<&OneTimeKeyId> =
1532+
let one_time_key_ids: BTreeSet<&OneTimeKeyId> =
15331533
one_time_keys.keys().map(Deref::deref).collect();
1534-
let second_device_key_ids: BTreeSet<&OneTimeKeyId> =
1534+
let second_one_time_key_ids: BTreeSet<&OneTimeKeyId> =
15351535
second_one_time_keys.keys().map(Deref::deref).collect();
15361536

1537-
assert_eq!(device_key_ids, second_device_key_ids);
1537+
assert_eq!(one_time_key_ids, second_one_time_key_ids);
15381538

15391539
account.mark_keys_as_published();
15401540
account.update_uploaded_key_count(50);
@@ -1549,10 +1549,10 @@ mod tests {
15491549
let (_, fourth_one_time_keys, _) = account.keys_for_upload();
15501550
assert!(!fourth_one_time_keys.is_empty());
15511551

1552-
let fourth_device_key_ids: BTreeSet<&OneTimeKeyId> =
1552+
let fourth_one_time_key_ids: BTreeSet<&OneTimeKeyId> =
15531553
fourth_one_time_keys.keys().map(Deref::deref).collect();
15541554

1555-
assert_ne!(device_key_ids, fourth_device_key_ids);
1555+
assert_ne!(one_time_key_ids, fourth_one_time_key_ids);
15561556
Ok(())
15571557
}
15581558

0 commit comments

Comments
 (0)