diff options
author | Igor Gnatenko <ignatenkobrain@fedoraproject.org> | 2017-10-07 10:13:40 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-07 12:09:14 +0200 |
commit | dd6686bfab51122d187d9d54761959212c78aa7a (patch) | |
tree | ac9f9ade8cdf763a06586762025cdc17d9eee460 | |
parent | 7f7cfeb45b579204e0bc94bea37e2c810d2e5ec9 (diff) | |
download | libnitrokey-dd6686bfab51122d187d9d54761959212c78aa7a.tar.gz libnitrokey-dd6686bfab51122d187d9d54761959212c78aa7a.tar.bz2 |
test3.cc: fix syntax error
Closes #72
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
-rw-r--r-- | unittest/test3.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unittest/test3.cc b/unittest/test3.cc index 9e0ef11..b5289f7 100644 --- a/unittest/test3.cc +++ b/unittest/test3.cc @@ -113,7 +113,7 @@ TEST_CASE("write general config", "[pronew]") { auto p = get_payload<WriteGeneralConfig>(); p.enable_user_password = 1; REQUIRE_THROWS( - WriteGeneralConfig::CommandTransaction::run(stick, p); + WriteGeneralConfig::CommandTransaction::run(stick, p) ); strcpyT(p.temporary_admin_password, temporary_password); WriteGeneralConfig::CommandTransaction::run(stick, p); @@ -154,7 +154,7 @@ TEST_CASE("authorize user HOTP", "[pronew]") { auto p3 = get_payload<GetHOTP>(); p3.slot_number = 0 + 0x10; REQUIRE_THROWS( - GetHOTP::CommandTransaction::run(stick, p3); + GetHOTP::CommandTransaction::run(stick, p3) ); strcpyT(p3.temporary_user_password, temporary_password); auto code_response = GetHOTP::CommandTransaction::run(stick, p3); @@ -205,7 +205,7 @@ TEST_CASE("authorize user TOTP", "[pronew]") { p_get_totp.slot_number = 0 + 0x20; REQUIRE_THROWS( - GetTOTP::CommandTransaction::run(stick, p_get_totp); + GetTOTP::CommandTransaction::run(stick, p_get_totp) ); strcpyT(p_get_totp.temporary_user_password, temporary_password); @@ -216,4 +216,4 @@ TEST_CASE("authorize user TOTP", "[pronew]") { auto code = GetTOTP::CommandTransaction::run(stick, p_get_totp); REQUIRE(code.data().code == 94287082); -}
\ No newline at end of file +} |