Skip to content

Commit

Permalink
chore: rename unit test name
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-jerry committed Apr 27, 2024
1 parent e170395 commit 84253b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/tauri/src/scope/fs.rs
Expand Up @@ -399,17 +399,17 @@ mod tests {

#[cfg(unix)]
#[test]
fn unix_temp_dir() {
fn check_temp_dir() {
use std::{
env::temp_dir,
fs::{canonicalize, remove_file, write},
};

let scope = new_scope();
let temp_dir = canonicalize(temp_dir()).unwrap_or(temp_dir());
scope.allow_directory(temp_dir.clone(), true).unwrap();
let tmp_dir = canonicalize(temp_dir()).unwrap_or(temp_dir());
scope.allow_directory(tmp_dir.clone(), true).unwrap();

let test_temp_file = temp_dir.clone().join("tauri_test_file");
let test_temp_file = tmp_dir.clone().join("tauri_test_file");
if test_temp_file.exists() {
remove_file(test_temp_file.clone()).unwrap();
}
Expand Down

0 comments on commit 84253b4

Please sign in to comment.