aboutsummaryrefslogtreecommitdiff
path: root/unittest/test2.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-22 19:35:26 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:22 +0100
commitd8a6073f6118062266df8ef77c5a7969a9ed8be7 (patch)
treecf73cff06e46b9ddaf36af393246cd6925761426 /unittest/test2.cc
parent3b0452c05b84ede5a2085aee4a550a2a63ccdb65 (diff)
downloadlibnitrokey-d8a6073f6118062266df8ef77c5a7969a9ed8be7.tar.gz
libnitrokey-d8a6073f6118062266df8ef77c5a7969a9ed8be7.tar.bz2
C++ tests update (2) - wait before lock
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test2.cc')
-rw-r--r--unittest/test2.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittest/test2.cc b/unittest/test2.cc
index b328c37..79417c6 100644
--- a/unittest/test2.cc
+++ b/unittest/test2.cc
@@ -50,6 +50,8 @@ TEST_CASE("test", "[test]") {
strcpyT(p.password, "123123123");
EnableHiddenEncryptedPartition::CommandTransaction::run(stick, p);
}
+ this_thread::sleep_for(1000ms);
+ stick10::LockDevice::CommandTransaction::run(stick);
stick.disconnect();
}