aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_offline.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-06-15 19:15:17 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-06-15 19:15:17 +0200
commit3dd267e062a2f3e182d84f15e13b15b6dd4958e0 (patch)
tree8994b48f6aa359bc52694f1b732c7f1b5ffc4184 /unittest/test_offline.cc
parentdd0cdcd2130699be8dde5dbadcf18cd9c00ef78f (diff)
parent89a73d88c9026b6347bea113896d24e419c4370c (diff)
downloadlibnitrokey-3dd267e062a2f3e182d84f15e13b15b6dd4958e0.tar.gz
libnitrokey-3dd267e062a2f3e182d84f15e13b15b6dd4958e0.tar.bz2
Merge branch 'master' into get_status
Update to latest codebase
Diffstat (limited to 'unittest/test_offline.cc')
-rw-r--r--unittest/test_offline.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc
index 320ad48..3ca3905 100644
--- a/unittest/test_offline.cc
+++ b/unittest/test_offline.cc
@@ -67,6 +67,10 @@ TEST_CASE("Test C++ side behaviour in offline", "[fast]") {
REQUIRE(serial_number.empty());
REQUIRE_THROWS_AS(
+ i->get_serial_number_as_u32(), DeviceNotConnected
+ );
+
+ REQUIRE_THROWS_AS(
i->get_status(), DeviceNotConnected
);