summaryrefslogtreecommitdiff
path: root/src/tests/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/config.rs')
-rw-r--r--src/tests/config.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/config.rs b/src/tests/config.rs
index fa311d5..3542ecf 100644
--- a/src/tests/config.rs
+++ b/src/tests/config.rs
@@ -55,8 +55,10 @@ $"#,
#[test_device]
fn set_wrong_usage(model: nitrokey::Model) {
- let res = Nitrocli::with_model(model).handle(&["config", "set", "--numlock", "2", "-N"]);
- let err = res.unwrap_str_err();
+ let err = Nitrocli::with_model(model)
+ .handle(&["config", "set", "--numlock", "2", "-N"])
+ .unwrap_err()
+ .to_string();
assert!(
err.contains("The argument '--numlock <numlock>' cannot be used with '--no-numlock'"),
err,