Skip to content

Commit f40d5a3

Browse files
committed
tests: Be less strict about error type when doing SetAttribute
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent b307ba4 commit f40d5a3

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
@@ -4108,10 +4108,7 @@ fn unique_id() -> TestResult {
41084108
} else {
41094109
assert!(matches!(
41104110
res,
4111-
Err(Error::Pkcs11(
4112-
RvError::ActionProhibited,
4113-
Function::SetAttributeValue
4114-
))
4111+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
41154112
));
41164113
}
41174114

@@ -4190,10 +4187,7 @@ fn validation() -> TestResult {
41904187
} else {
41914188
assert!(matches!(
41924189
res,
4193-
Err(Error::Pkcs11(
4194-
RvError::ActionProhibited,
4195-
Function::SetAttributeValue
4196-
))
4190+
Err(Error::Pkcs11(_, Function::SetAttributeValue))
41974191
));
41984192
}
41994193

0 commit comments

Comments
 (0)