Skip to content

Commit abacdc6

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

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

@@ -3904,10 +3901,7 @@ fn validation() -> TestResult {
39043901
} else {
39053902
assert!(matches!(
39063903
res,
3907-
Err(Error::Pkcs11(
3908-
RvError::ActionProhibited,
3909-
Function::SetAttributeValue
3910-
))
3904+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
39113905
));
39123906
}
39133907

0 commit comments

Comments
 (0)