aboutsummaryrefslogtreecommitdiff
path: root/unittest/test3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/test3.cc')
-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
+}