crypto: Test getting all user devices in the sqlite store as well.
parent
a632f2e5a2
commit
001a0de00f
|
@ -956,5 +956,9 @@ mod test {
|
|||
}
|
||||
assert_eq!(device.algorithms().len(), loaded_device.algorithms().len());
|
||||
assert_eq!(device.keys(), loaded_device.keys());
|
||||
|
||||
let user_devices = store.get_user_devices(device.user_id()).await.unwrap();
|
||||
assert_eq!(user_devices.keys().nth(0).unwrap(), device.device_id());
|
||||
assert_eq!(user_devices.devices().nth(0).unwrap(), &device);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue