Skip to content

Commit ceb0c71

Browse files
committed
tests(crypto): Doctests, update snapshots to include forwarder_data.
1 parent 2f6f5d9 commit ceb0c71

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

crates/matrix-sdk-crypto/src/file_encryption/key_export.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub enum KeyExportError {
7474
/// # let machine = OlmMachine::new(&alice, device_id!("DEVICEID")).await;
7575
/// # let export = Cursor::new("".to_owned());
7676
/// let exported_keys = decrypt_room_key_export(export, "1234").unwrap();
77-
/// machine.store().import_room_keys(exported_keys, None, |_, _| {}).await.unwrap();
77+
/// machine.store().import_room_keys(exported_keys, None, None, |_, _| {}).await.unwrap();
7878
/// # };
7979
/// ```
8080
pub fn decrypt_room_key_export(

crates/matrix-sdk-crypto/src/olm/group_sessions/inbound.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,7 @@ mod tests {
10491049
"legacy_session":false
10501050
}
10511051
},
1052+
"forwarder_data":null,
10521053
"room_id":"!test:localhost",
10531054
"imported":false,
10541055
"backed_up":false,

crates/matrix-sdk-crypto/src/olm/group_sessions/snapshots/matrix_sdk_crypto__olm__group_sessions__inbound__tests__pickle_snapshot.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ expression: pickle
2323
"legacy_session": false
2424
}
2525
},
26+
"forwarder_data": null,
2627
"room_id": "!test:localhost",
2728
"imported": false,
2829
"backed_up": false,

0 commit comments

Comments
 (0)