aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-09-07 15:49:40 -0700
committerDaniel Mueller <deso@posteo.net>2020-09-07 15:52:07 -0700
commit5de1cc408bbce296801969f563c5ba10fe504b02 (patch)
treeadcf6547097f3bc852863ae4875dd5a9ff3bab66 /src/tests
parentbeaf6ee2cba27343194fc555503870c3857f3245 (diff)
downloadnitrocli-5de1cc408bbce296801969f563c5ba10fe504b02.tar.gz
nitrocli-5de1cc408bbce296801969f563c5ba10fe504b02.tar.bz2
fixup! Add --serial-number option
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/status.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/tests/status.rs b/src/tests/status.rs
index 268e36f..7946929 100644
--- a/src/tests/status.rs
+++ b/src/tests/status.rs
@@ -28,16 +28,6 @@ fn not_found_pro() {
assert_eq!(err, "Nitrokey device not found (filter: model=pro)");
}
-#[test_device]
-fn not_found_by_serial_number() {
- let res = Nitrocli::new().handle(&["status", "--model=storage", "--serial-number=deadbeef"]);
- let err = res.unwrap_err().to_string();
- assert_eq!(
- err,
- "Nitrokey device not found (filter: model=storage, serial number in [0xdeadbeef])"
- );
-}
-
#[test_device(pro)]
fn output_pro(model: nitrokey::Model) -> anyhow::Result<()> {
let re = regex::Regex::new(