crypto: Test the outgoing requests method instead of accessing the field.
parent
c5bece2d58
commit
42c4cf2a30
|
@ -369,7 +369,7 @@ mod test {
|
||||||
fn create_machine() {
|
fn create_machine() {
|
||||||
let machine = get_machine();
|
let machine = get_machine();
|
||||||
|
|
||||||
assert!(machine.outgoing_to_device_requests.is_empty());
|
assert!(machine.outgoing_to_device_requests().is_empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_test]
|
#[async_test]
|
||||||
|
@ -382,7 +382,7 @@ mod test {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
assert!(machine.outgoing_to_device_requests.is_empty());
|
assert!(machine.outgoing_to_device_requests().is_empty());
|
||||||
machine
|
machine
|
||||||
.create_outgoing_key_request(
|
.create_outgoing_key_request(
|
||||||
session.room_id(),
|
session.room_id(),
|
||||||
|
@ -391,8 +391,8 @@ mod test {
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert!(!machine.outgoing_to_device_requests.is_empty());
|
assert!(!machine.outgoing_to_device_requests().is_empty());
|
||||||
assert_eq!(machine.outgoing_to_device_requests.len(), 1);
|
assert_eq!(machine.outgoing_to_device_requests().len(), 1);
|
||||||
|
|
||||||
machine
|
machine
|
||||||
.create_outgoing_key_request(
|
.create_outgoing_key_request(
|
||||||
|
|
Loading…
Reference in New Issue