Skip to content

Commit 02480f6

Browse files
authored
Merge pull request #262 from Jakuje/interface-version
tests: Be less strict in accepted interface versions
2 parents a1680c9 + 09e8b5d commit 02480f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cryptoki/tests/basic.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,11 @@ fn get_info_test() -> TestResult {
10371037
assert_eq!(info.cryptoki_version().minor(), 40);
10381038
} else {
10391039
assert_eq!(info.cryptoki_version().major(), 3);
1040-
assert_eq!(info.cryptoki_version().minor(), 2);
1040+
let minor = info.cryptoki_version().minor();
1041+
assert!(
1042+
[0, 2].contains(&minor),
1043+
"Only 3.0 and 3.2 versions are expected but got 3.{minor}"
1044+
);
10411045
}
10421046
Ok(())
10431047
}

0 commit comments

Comments
 (0)