aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-07 12:25:14 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-07 12:25:14 +0200
commitd2c33da6230d3b1ed1eeeb059272123d895569ed (patch)
treeac9f9ade8cdf763a06586762025cdc17d9eee460
parent7f7cfeb45b579204e0bc94bea37e2c810d2e5ec9 (diff)
parentdd6686bfab51122d187d9d54761959212c78aa7a (diff)
downloadlibnitrokey-d2c33da6230d3b1ed1eeeb059272123d895569ed.tar.gz
libnitrokey-d2c33da6230d3b1ed1eeeb059272123d895569ed.tar.bz2
Merge branch 'pr_72'
Closes #72
-rw-r--r--unittest/test3.cc8
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
+}