diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-20 10:11:18 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-20 10:11:18 +0200 |
commit | 1226891ee584bfb6bb67e0b8df805fbe1790de2a (patch) | |
tree | 75d5fff6d41808b7d81f80508e0c687cc4f701a1 /unittest | |
parent | 49413927e68189aa91199f429675487e86231636 (diff) | |
download | libnitrokey-1226891ee584bfb6bb67e0b8df805fbe1790de2a.tar.gz libnitrokey-1226891ee584bfb6bb67e0b8df805fbe1790de2a.tar.bz2 |
fixup add second seriespr_115
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/test_offline.cc | 13 |
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); } |