From fb000521ccacdeb7f4c14e6b6ed88b5251a21659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 4 Jan 2024 10:43:20 +0100 Subject: [PATCH] Improve coverage of tests --- pkcs11/src/api/object.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkcs11/src/api/object.rs b/pkcs11/src/api/object.rs index bac96258..adf5e753 100644 --- a/pkcs11/src/api/object.rs +++ b/pkcs11/src/api/object.rs @@ -270,6 +270,7 @@ mod tests { login::LoginCtx, session::Session, }, + config::config_file::RetryConfig, data::SESSION_MANAGER, }; @@ -393,7 +394,15 @@ mod tests { device_error: 0, enum_ctx: None, flags: 0, - login_ctx: LoginCtx::new(None, None, vec![], None), + login_ctx: LoginCtx::new( + None, + None, + vec![], + Some(RetryConfig { + count: 2, + delay_seconds: 0, + }), + ), slot_id: 0, };