Skip to content

Commit 7e0d445

Browse files
committed
tests: Reset pin to the original value
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent a3dc12a commit 7e0d445

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cryptoki/tests/basic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,9 @@ fn set_pin_test() -> TestResult {
11571157
session.logout()?;
11581158
session.login(UserType::User, Some(&new_user_pin))?;
11591159

1160+
// return it back
1161+
session.set_pin(&new_user_pin, &user_pin)?;
1162+
session.logout()?;
11601163
Ok(())
11611164
}
11621165

0 commit comments

Comments
 (0)