diff options
| author | Robin Krahl <robin.krahl@ireas.org> | 2018-05-22 09:46:15 +0000 | 
|---|---|---|
| committer | Robin Krahl <robin.krahl@ireas.org> | 2018-05-22 11:47:41 +0200 | 
| commit | 1cd68d3fccda7b6c80009b19ec9853681d9d15ae (patch) | |
| tree | bb2861babb452b46b0a252a46d7d29d5ca2e2a81 /src/tests | |
| parent | ea00d06fc614c632a4c7250ef0c769705ed8c1c3 (diff) | |
| download | nitrokey-rs-1cd68d3fccda7b6c80009b19ec9853681d9d15ae.tar.gz nitrokey-rs-1cd68d3fccda7b6c80009b19ec9853681d9d15ae.tar.bz2 | |
Remove set_debug calls in the tests and update documentation
Since libnitrokey v3.3, libnitrokey no long has debugging output enabled
per default.  Therefore, a corresponding note can be removed from the
crate documentation and the set_debug calls can be removed from the
tests.
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/pro.rs | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/src/tests/pro.rs b/src/tests/pro.rs index ece94bf..71daa78 100644 --- a/src/tests/pro.rs +++ b/src/tests/pro.rs @@ -1,5 +1,5 @@  use std::ffi::CStr; -use {set_debug, AdminAuthenticatedDevice, CommandError, CommandStatus, Config, ConfigureOtp, +use {AdminAuthenticatedDevice, CommandError, CommandStatus, Config, ConfigureOtp,       Device, GenerateOtp, Model, OtpMode, OtpSlotData, UnauthenticatedDevice};  static ADMIN_PASSWORD: &str = "12345678"; @@ -26,7 +26,6 @@ static TOTP_CODES: &[(u64, &str)] = &[  ];  fn get_test_device() -> UnauthenticatedDevice { -    set_debug(false);      ::connect_model(Model::Pro).expect("Could not connect to the Nitrokey Pro.")  } @@ -39,7 +38,6 @@ fn get_admin_test_device() -> AdminAuthenticatedDevice {  #[test]  #[cfg_attr(not(feature = "test-pro"), ignore)]  fn connect() { -    set_debug(false);      assert!(::connect().is_ok());      assert!(::connect_model(Model::Pro).is_ok());      assert!(::connect_model(Model::Storage).is_err()); @@ -57,7 +55,6 @@ fn assert_empty_serial_number() {  #[test]  #[cfg_attr(not(feature = "test-pro"), ignore)]  fn disconnect() { -    set_debug(false);      ::connect().unwrap();      assert_empty_serial_number();      ::connect() | 
