aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:24:23 +0100
committerRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:24:23 +0100
commit45b1eec5db3939229f9f3b0a06cd770a396f18e3 (patch)
tree770dfd19aac4c68b9bcb383100c4c044c617437c /src
parentf1a11ebf72610fb9cf80ac7f9f147b4ba1a5336f (diff)
downloadnitrokey-sys-rs-45b1eec5db3939229f9f3b0a06cd770a396f18e3.tar.gz
nitrokey-sys-rs-45b1eec5db3939229f9f3b0a06cd770a396f18e3.tar.bz2
Update login_auto test case
Currently, the login_auto test case calls NK_logout before NK_login_auto due to the behavior described in libnitrokey pull request #115 [0]. This behavior has been fixed in version 3.4.1. Therefore this patch removes the NK_logout call. [0] https://github.com/Nitrokey/libnitrokey/pull/115
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2740cc9..169dac4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -14,8 +14,6 @@ mod tests {
#[test]
fn login_auto() {
unsafe {
- // logout required due to https://github.com/Nitrokey/libnitrokey/pull/115
- NK_logout();
assert_eq!(0, NK_login_auto());
}
}