aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-06-06 15:18:03 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-06-06 15:18:03 +0200
commitf8a9c031ff6c0d543318e0f88be48e945d115514 (patch)
tree5c62e945e6fbd6b6b59320f0d0933840156455b9
parent720b5fef6d9777d568d9921cc0c4b1c617025384 (diff)
downloadnitrokey-rs-f8a9c031ff6c0d543318e0f88be48e945d115514.tar.gz
nitrokey-rs-f8a9c031ff6c0d543318e0f88be48e945d115514.tar.bz2
Remove tests for specific firmware versions
The firmware version is too volatile to restrict it to certain values. Therefore, we only check that there is a non-zero version number instead of expecting specific values.
-rw-r--r--src/tests/device.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/device.rs b/src/tests/device.rs
index 6f88bf5..68f1a39 100644
--- a/src/tests/device.rs
+++ b/src/tests/device.rs
@@ -67,12 +67,11 @@ fn get_serial_number() {
}
#[test]
#[cfg_attr(not(feature = "test-pro"), ignore)]
-// TODO: adapt for storage
fn get_firmware_version() {
let device = Target::connect().unwrap();
assert_eq!(0, device.get_major_firmware_version());
let minor = device.get_minor_firmware_version();
- assert!(minor == 7 || minor == 8);
+ assert!(minor > 0);
}
fn admin_retry<T: Authenticate + Device>(device: T, suffix: &str, count: u8) -> T {