Skip to content

Commit 942308f

Browse files
committed
Skip test_hotp_vectors if no_sha1 is enabled
Adds a cfg attribute to exclude the `test_hotp_vectors` test when the `no_sha1` feature is enabled. This prevents compilation or execution failures during testing, as the standard HOTP test vectors strictly depend on the SHA-1 algorithm. Signed-off-by: Simo Sorce <simo@redhat.com>
1 parent 00c3bfc commit 942308f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tests/hotp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ fn test_hotp() {
115115
testtokn.finalize();
116116
}
117117

118+
#[cfg(not(feature = "no_sha1"))]
118119
#[test]
119120
#[parallel]
120121
fn test_hotp_vectors() {

0 commit comments

Comments
 (0)