summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-06-07 02:57:58 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-06-07 02:57:58 +0200
commitbbe6740d0a0b3f4dd8c1593272a747cfbbb3006b (patch)
treef41bd5aabc8d8372acc32d2f730423c08b74f462
parentf95e2be7422243bbbb07ae07f6b026bd6d578099 (diff)
downloadnitrokey-rs-bbe6740d0a0b3f4dd8c1593272a747cfbbb3006b.tar.gz
nitrokey-rs-bbe6740d0a0b3f4dd8c1593272a747cfbbb3006b.tar.bz2
Use Storage struct for Storage-specific tests
-rw-r--r--src/tests/device.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/device.rs b/src/tests/device.rs
index 7f7a819..22423fa 100644
--- a/src/tests/device.rs
+++ b/src/tests/device.rs
@@ -245,7 +245,7 @@ fn unlock_user_pin() {
#[test]
#[cfg_attr(not(feature = "test-storage"), ignore)]
fn encrypted_volume() {
- let device = Target::connect().unwrap();
+ let device = Storage::connect().unwrap();
assert_eq!(CommandStatus::Success, device.lock());
assert_eq!(1, count_nitrokey_block_devices());
@@ -268,7 +268,7 @@ fn encrypted_volume() {
#[test]
#[cfg_attr(not(feature = "test-storage"), ignore)]
fn lock() {
- let device = Target::connect().unwrap();
+ let device = Storage::connect().unwrap();
assert_eq!(
CommandStatus::Success,