mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 19:54:07 +03:00
fix(ci): windows tests
This commit is contained in:
parent
27b1a0719a
commit
ef9ecd511f
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user