summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index 1dda1ef61..5c97bcae4 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -3796,8 +3796,9 @@ mod tests {
#[test]
fn allow_read_allowlist() {
- use tempfile::TempDir;
- let temp_dir = TempDir::new().expect("tempdir fail").path().to_path_buf();
+ use test_util::TempDir;
+ let temp_dir_guard = TempDir::new();
+ let temp_dir = temp_dir_guard.path().to_path_buf();
let r = flags_from_vec(svec![
"deno",
@@ -3819,8 +3820,9 @@ mod tests {
#[test]
fn allow_write_allowlist() {
- use tempfile::TempDir;
- let temp_dir = TempDir::new().expect("tempdir fail").path().to_path_buf();
+ use test_util::TempDir;
+ let temp_dir_guard = TempDir::new();
+ let temp_dir = temp_dir_guard.path().to_path_buf();
let r = flags_from_vec(svec![
"deno",