Skip to content

Commit 6faaceb

Browse files
committed
tests: Be less strict about error type when doing SetAttribute
Signed-off-by: Jakub Jelen <[email protected]>
1 parent c5bd543 commit 6faaceb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

cryptoki/tests/basic.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3825,10 +3825,7 @@ fn unique_id() -> TestResult {
38253825
} else {
38263826
assert!(matches!(
38273827
res,
3828-
Err(Error::Pkcs11(
3829-
RvError::ActionProhibited,
3830-
Function::SetAttributeValue
3831-
))
3828+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
38323829
));
38333830
}
38343831

@@ -3906,10 +3903,7 @@ fn validation() -> TestResult {
39063903
} else {
39073904
assert!(matches!(
39083905
res,
3909-
Err(Error::Pkcs11(
3910-
RvError::ActionProhibited,
3911-
Function::SetAttributeValue
3912-
))
3906+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
39133907
));
39143908
}
39153909

0 commit comments

Comments
 (0)