From a9f51585b909c805bd441200c65e622217dc1a38 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 21 May 2018 23:04:20 +0000 Subject: Activate tests for unauthorized OTP code generation In a previous commit, we changed get_string_result to only free the string if the operation was successful. Therefore we can re-enable the tests in hotp_pin and totp_pin that cause failing OTP code generation commands. --- src/tests/pro.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/tests/pro.rs b/src/tests/pro.rs index d2132f8..732c248 100644 --- a/src/tests/pro.rs +++ b/src/tests/pro.rs @@ -108,8 +108,7 @@ fn hotp_pin() { let user = admin.device().authenticate_user(USER_PASSWORD).unwrap(); check_hotp_codes(&user); - // TODO: enable for newer libnitrokey - // assert!(user.device().get_hotp_code(1).is_err()); + assert!(user.device().get_hotp_code(1).is_err()); } #[test] @@ -209,8 +208,7 @@ fn totp_pin() { let user = admin.device().authenticate_user(USER_PASSWORD).unwrap(); check_totp_codes(&user); - // TODO: enable for newer libnitrokey - // assert!(user.device().get_totp_code(1).is_err()); + assert!(user.device().get_totp_code(1).is_err()); } #[test] -- cgit v1.2.3