aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-06-20 10:11:18 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-06-20 10:11:18 +0200
commit1226891ee584bfb6bb67e0b8df805fbe1790de2a (patch)
tree75d5fff6d41808b7d81f80508e0c687cc4f701a1
parent49413927e68189aa91199f429675487e86231636 (diff)
downloadlibnitrokey-pr_115.tar.gz
libnitrokey-pr_115.tar.bz2
fixup add second seriespr_115
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--unittest/test_offline.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc
index 808c617..e34eeb4 100644
--- a/unittest/test_offline.cc
+++ b/unittest/test_offline.cc
@@ -162,7 +162,7 @@ TEST_CASE("Test device commands ids", "[fast]") {
}
-TEST_CASE("Connect should not return true after second attempt", "[fast]") {
+TEST_CASE("Connect should not return true after the second attempt", "[fast]") {
int result = 0;
result = NK_login("S");
@@ -174,4 +174,15 @@ TEST_CASE("Connect should not return true after second attempt", "[fast]") {
result = NK_logout();
REQUIRE(result == 0);
+ result = NK_logout();
+ REQUIRE(result == 0);
+
+ result = NK_login("P");
+ REQUIRE(result == 0);
+
+ result = NK_login_auto();
+ REQUIRE(result == 0);
+
+ result = NK_logout();
+ REQUIRE(result == 0);
}