events: Make assert_matches! invocations slight more compact
This commit is contained in:
parent
698d78a6f3
commit
d7d449656c
@ -545,10 +545,7 @@ mod tests {
|
|||||||
content: StartToDeviceEventContent {
|
content: StartToDeviceEventContent {
|
||||||
from_device,
|
from_device,
|
||||||
transaction_id,
|
transaction_id,
|
||||||
method: StartMethod::Custom(CustomContent {
|
method: StartMethod::Custom(CustomContent { method, data })
|
||||||
method,
|
|
||||||
data,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
} if from_device == "123"
|
} if from_device == "123"
|
||||||
&& sender == user_id!("@example:localhost")
|
&& sender == user_id!("@example:localhost")
|
||||||
@ -616,9 +613,7 @@ mod tests {
|
|||||||
.unwrap(),
|
.unwrap(),
|
||||||
StartEventContent {
|
StartEventContent {
|
||||||
from_device,
|
from_device,
|
||||||
relation: Relation {
|
relation: Relation { event_id },
|
||||||
event_id,
|
|
||||||
},
|
|
||||||
method: StartMethod::MSasV1(MSasV1Content {
|
method: StartMethod::MSasV1(MSasV1Content {
|
||||||
hashes,
|
hashes,
|
||||||
key_agreement_protocols,
|
key_agreement_protocols,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user