summaryrefslogtreecommitdiff
path: root/unittest/test_safe.cpp
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-28 12:15:43 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-01-29 16:37:08 +0100
commit34e4c943bd625225367954a4ea5dc119d083978d (patch)
tree0316b8fb03d4129aadce2f43d910829f492227a0 /unittest/test_safe.cpp
parent06bc6a5ff449a69b218ca1233c41d8b9d534505d (diff)
downloadlibnitrokey-34e4c943bd625225367954a4ea5dc119d083978d.tar.gz
libnitrokey-34e4c943bd625225367954a4ea5dc119d083978d.tar.bz2
Replace NK_status with NK_get_status_as_string in unit tests
Diffstat (limited to 'unittest/test_safe.cpp')
-rw-r--r--unittest/test_safe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/test_safe.cpp b/unittest/test_safe.cpp
index d6f8b63..a244027 100644
--- a/unittest/test_safe.cpp
+++ b/unittest/test_safe.cpp
@@ -60,7 +60,7 @@ TEST_CASE("Status command for Pro or Storage", "[BASIC]") {
auto const m = NK_get_device_model();
REQUIRE(m != NK_DISCONNECTED);
if (m == NK_PRO)
- s = NK_status();
+ s = NK_get_status_as_string();
else if (m == NK_STORAGE){
s = NK_get_status_storage_as_string();
}