aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/tests/mod.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-07-17 20:43:58 -0700
committerDaniel Mueller <deso@posteo.net>2019-07-17 20:43:58 -0700
commitcc4a29c3b7662f74d6dfab42ff2b6f303252256f (patch)
tree907fd85456b0251c94a70bf79f2602309fb3ccf4 /nitrocli/src/tests/mod.rs
parentef47e3f21498ec886508a344d7c0d5f739117a84 (diff)
downloadnitrocli-cc4a29c3b7662f74d6dfab42ff2b6f303252256f.tar.gz
nitrocli-cc4a29c3b7662f74d6dfab42ff2b6f303252256f.tar.bz2
Remove hack required for having device tests in different modules
With nitrokey-test up to version 0.2.0 we required a work around to make device tests work across different modules. With this patch we bump the consumed version of the crate to 0.2.1, as part which the underlying problem got fixed. Hence, with this change we remove this hack as it is no longer needed.
Diffstat (limited to 'nitrocli/src/tests/mod.rs')
-rw-r--r--nitrocli/src/tests/mod.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/nitrocli/src/tests/mod.rs b/nitrocli/src/tests/mod.rs
index 0e5d8bc..c2b51c2 100644
--- a/nitrocli/src/tests/mod.rs
+++ b/nitrocli/src/tests/mod.rs
@@ -27,15 +27,6 @@ use nitrokey_test::test as test_device;
const NITROKEY_DEFAULT_ADMIN_PIN: &str = "12345678";
const NITROKEY_DEFAULT_USER_PIN: &str = "123456";
-// TODO: This is a hack to make the nitrokey-test crate work across
-// module boundaries. Upon first use of the nitrokey_test::test
-// macro a new function, __nitrokey_mutex, will be emitted, but it
-// is not visible in a different module. To work around that we
-// trigger the macro here first and then `use super::*` from all
-// of the submodules.
-#[test_device]
-fn dummy() {}
-
mod config;
mod encrypted;
mod hidden;