fix(ci): windows tests

This commit is contained in:
Lucas Nogueira 2022-02-09 12:44:08 -03:00
parent 27b1a0719a
commit ef9ecd511f
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F

View File

@ -48,8 +48,10 @@ mod test {
assert!(res.is_err());
#[cfg(not(windows))]
if let Error::Io(e) = res.unwrap_err() {
#[cfg(windows)]
assert_eq!(e.to_string(), "Access is denied. (os error 5)".to_string());
#[cfg(not(windows))]
assert_eq!(e.to_string(), "Is a directory (os error 21)".to_string());
}
}
@ -86,9 +88,8 @@ mod test {
assert!(res.is_err());
#[cfg(not(windows))]
if let Error::Io(e) = res.unwrap_err() {
#[cfg(windows)]
assert_eq!(e.to_string(), "Access is denied. (os error 5)".to_string());
#[cfg(not(windows))]
assert_eq!(e.to_string(), "Is a directory (os error 21)".to_string());
}