crypto: Test getting all user devices in the sqlite store as well.

master
Damir Jelić 2020-04-17 15:30:53 +02:00
parent a632f2e5a2
commit 001a0de00f
1 changed files with 4 additions and 0 deletions

View File

@ -956,5 +956,9 @@ mod test {
} }
assert_eq!(device.algorithms().len(), loaded_device.algorithms().len()); assert_eq!(device.algorithms().len(), loaded_device.algorithms().len());
assert_eq!(device.keys(), loaded_device.keys()); 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);
} }
} }