Răsfoiți Sursa

fix text file busy on linux CI (#3413)

chip 3 ani în urmă
părinte
comite
c046681b51
1 a modificat fișierele cu 7 adăugiri și 5 ștergeri
  1. 7 5
      core/tauri/tests/restart.rs

+ 7 - 5
core/tauri/tests/restart.rs

@@ -138,18 +138,20 @@ fn create_symlink(original: &Path, link: PathBuf) -> io::Result<Symlink> {
   };
 }
 
+/// Only use 1 test to prevent cargo from waiting on itself.
+///
+/// While not ideal, this is fine because they use the same solution for both cases.
 #[test]
-fn symlink() -> Result {
+fn restart_symlinks() -> Result {
+  // single symlink
   symlink_runner(|bin| {
     let mut link = bin.to_owned();
     link.set_file_name("symlink");
     link.set_extension("exe");
     create_symlink(bin, link)
-  })
-}
+  })?;
 
-#[test]
-fn nested_symlinks() -> Result {
+  // nested symlinks
   symlink_runner(|bin| {
     let mut link1 = bin.to_owned();
     link1.set_file_name("symlink1");