Gate tests on required features

This commit is contained in:
Alexander Kjäll 2023-12-23 16:12:00 +01:00 committed by Benjamin Fry
parent 8911f53d15
commit 1d944684bc
2 changed files with 2 additions and 0 deletions

View File

@ -895,6 +895,7 @@ mod tests {
assert_eq!(tbs, tbv);
}
#[cfg(any(feature = "dnssec-ring", feature = "dnssec-openssl"))]
#[test]
fn test_sign_encode_id_changed() {
let mut message = Message::new();

View File

@ -30,6 +30,7 @@ fn test_dnskey_display() {
assert_eq!(result, exp_result);
}
#[cfg(any(feature = "dnssec-ring", feature = "dnssec-openssl"))]
#[test]
#[allow(deprecated)]
fn test_ds_display() {