Skip to content

Commit 5ad9e90

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

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
@@ -3823,10 +3823,7 @@ fn unique_id() -> TestResult {
38233823
} else {
38243824
assert!(matches!(
38253825
res,
3826-
Err(Error::Pkcs11(
3827-
RvError::AttributeReadOnly,
3828-
Function::SetAttributeValue
3829-
))
3826+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
38303827
));
38313828
}
38323829

@@ -3903,10 +3900,7 @@ fn validation() -> TestResult {
39033900
} else {
39043901
assert!(matches!(
39053902
res,
3906-
Err(Error::Pkcs11(
3907-
RvError::ActionProhibited,
3908-
Function::SetAttributeValue
3909-
))
3903+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
39103904
));
39113905
}
39123906

0 commit comments

Comments
 (0)