From 5de1cc408bbce296801969f563c5ba10fe504b02 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 7 Sep 2020 15:49:40 -0700 Subject: fixup! Add --serial-number option --- src/tests/status.rs | 10 ---------- 1 file changed, 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( -- cgit v1.2.3