diff --git a/src/avatar.rs b/src/avatar.rs index 07f0bde1..f8507bf0 100644 --- a/src/avatar.rs +++ b/src/avatar.rs @@ -106,9 +106,10 @@ mod tests { assert_eq!(data.data, b"\0\0\0"); } + #[cfg(not(feature = "disable-validation"))] #[test] fn test_invalid() { - let elem: Element = "" + let elem: Element = "" .parse() .unwrap(); let error = Data::try_from(elem).unwrap_err();