summaryrefslogtreecommitdiff
path: root/src/tests/unencrypted.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-14 19:21:26 +0100
committerDaniel Mueller <deso@posteo.net>2020-01-14 19:21:26 +0100
commit1df484fd699f88b6d7e23c09464294a7c26c7e00 (patch)
treebcdba40b40cb99c16e640b3484a38c5229287437 /src/tests/unencrypted.rs
parent5357d0dd6dbfbb545ee7ddc41ea4527775ca2e4b (diff)
downloadnitrocli-1df484fd699f88b6d7e23c09464294a7c26c7e00.tar.gz
nitrocli-1df484fd699f88b6d7e23c09464294a7c26c7e00.tar.bz2
Bump nitrokey dependency to version 0.5.1
This change updates the version of the nitrokey crate that we use to 0.5.1. As part of that, it replaces occurrences of Storage::get_status with Storage::get_storage_status as the method has been renamed.
Diffstat (limited to 'src/tests/unencrypted.rs')
-rw-r--r--src/tests/unencrypted.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/unencrypted.rs b/src/tests/unencrypted.rs
index 547dcaf..ceeb17c 100644
--- a/src/tests/unencrypted.rs
+++ b/src/tests/unencrypted.rs
@@ -28,8 +28,8 @@ fn unencrypted_set_read_write(model: nitrokey::Model) -> crate::Result<()> {
{
let mut manager = nitrokey::force_take()?;
let device = manager.connect_storage()?;
- assert!(device.get_status()?.unencrypted_volume.active);
- assert!(!device.get_status()?.unencrypted_volume.read_only);
+ assert!(device.get_storage_status()?.unencrypted_volume.active);
+ assert!(!device.get_storage_status()?.unencrypted_volume.read_only);
}
let out = ncli.handle(&["unencrypted", "set", "read-only"])?;
@@ -38,8 +38,8 @@ fn unencrypted_set_read_write(model: nitrokey::Model) -> crate::Result<()> {
{
let mut manager = nitrokey::force_take()?;
let device = manager.connect_storage()?;
- assert!(device.get_status()?.unencrypted_volume.active);
- assert!(device.get_status()?.unencrypted_volume.read_only);
+ assert!(device.get_storage_status()?.unencrypted_volume.active);
+ assert!(device.get_storage_status()?.unencrypted_volume.read_only);
}
Ok(())