diff options
Diffstat (limited to 'src/tests/lock.rs')
-rw-r--r-- | src/tests/lock.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/lock.rs b/src/tests/lock.rs index e04e8eb..5180486 100644 --- a/src/tests/lock.rs +++ b/src/tests/lock.rs @@ -8,7 +8,7 @@ use super::*; #[test_device(pro)] fn lock_pro(model: nitrokey::Model) -> anyhow::Result<()> { // We can't really test much more here than just success of the command. - let out = Nitrocli::with_model(model).handle(&["lock"])?; + let out = Nitrocli::new().model(model).handle(&["lock"])?; assert!(out.is_empty()); Ok(()) @@ -16,7 +16,7 @@ fn lock_pro(model: nitrokey::Model) -> anyhow::Result<()> { #[test_device(storage)] fn lock_storage(model: nitrokey::Model) -> anyhow::Result<()> { - let mut ncli = Nitrocli::with_model(model); + let mut ncli = Nitrocli::new().model(model); let _ = ncli.handle(&["encrypted", "open"])?; let out = ncli.handle(&["lock"])?; |