Skip to content

Commit 8b28eff

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

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::AttributeReadOnly,
3830-
Function::SetAttributeValue
3831-
))
3828+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
38323829
));
38333830
}
38343831

@@ -3909,10 +3906,7 @@ fn validation() -> TestResult {
39093906
} else {
39103907
assert!(matches!(
39113908
res,
3912-
Err(Error::Pkcs11(
3913-
RvError::ActionProhibited,
3914-
Function::SetAttributeValue
3915-
))
3909+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
39163910
));
39173911
}
39183912

0 commit comments

Comments
 (0)