crypto: Fix the unknown method tests fot the SAS state transitions.
parent
6c85d3e28f
commit
72168ce084
|
@ -990,7 +990,6 @@ mod test {
|
||||||
let (alice, bob) = get_sas_pair().await;
|
let (alice, bob) = get_sas_pair().await;
|
||||||
|
|
||||||
let mut event = wrap_to_device_event(bob.user_id(), bob.as_content());
|
let mut event = wrap_to_device_event(bob.user_id(), bob.as_content());
|
||||||
event.sender = UserId::try_from("@malory:example.org").unwrap();
|
|
||||||
|
|
||||||
match &mut event.content.method {
|
match &mut event.content.method {
|
||||||
AcceptMethod::MSasV1(ref mut c) => {
|
AcceptMethod::MSasV1(ref mut c) => {
|
||||||
|
@ -1009,7 +1008,6 @@ mod test {
|
||||||
let (alice, bob) = get_sas_pair().await;
|
let (alice, bob) = get_sas_pair().await;
|
||||||
|
|
||||||
let mut event = wrap_to_device_event(bob.user_id(), bob.as_content());
|
let mut event = wrap_to_device_event(bob.user_id(), bob.as_content());
|
||||||
event.sender = UserId::try_from("@malory:example.org").unwrap();
|
|
||||||
|
|
||||||
event.content.method = AcceptMethod::Custom(CustomContent {
|
event.content.method = AcceptMethod::Custom(CustomContent {
|
||||||
method: "m.sas.custom".to_string(),
|
method: "m.sas.custom".to_string(),
|
||||||
|
|
Loading…
Reference in New Issue