mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(ci): windows tests
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user