Skip to content

Commit 554719f

Browse files
committed
fixup! tests: Delete keys to avoid search mismatch on rerun
1 parent 40ab9f8 commit 554719f

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
@@ -2111,6 +2111,9 @@ fn generate_generic_secret_key() -> TestResult {
21112111
let attributes_result = session.find_objects(&[key_label])?.remove(0);
21122112
assert_eq!(key, attributes_result);
21132113

2114+
// Delete keys
2115+
session.destroy_object(key)?;
2116+
21142117
Ok(())
21152118
}
21162119

0 commit comments

Comments
 (0)