Jelajahi Sumber

fix(tests): remove windows assertion on `check_read_string_fail`

Lucas Nogueira 3 tahun lalu
induk
melakukan
e0588c45b8
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      core/tauri/src/api/file.rs

+ 1 - 3
core/tauri/src/api/file.rs

@@ -48,10 +48,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());
     }
   }