Skip to content

Commit

Permalink
test(olm): Add mutation tests for pre_key
Browse files Browse the repository at this point in the history
Relates to: #78

Signed-off-by: Johannes Marbach <[email protected]>
  • Loading branch information
Johennes authored and poljar committed Mar 18, 2024
1 parent 993410b commit 5034fc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/olm/account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ mod test {

if let OlmMessage::PreKey(m) = olm_message {
assert_eq!(m.session_keys(), alice_session.session_keys());
assert_eq!(m.session_id(), alice_session.session_id());

let InboundCreationResult { session: mut bob_session, plaintext } =
bob.create_inbound_session(alice.curve25519_key(), &m)?;
Expand Down

0 comments on commit 5034fc6

Please sign in to comment.