summaryrefslogtreecommitdiff
path: root/cli/tests/integration/install_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-04-01 11:15:37 -0400
committerGitHub <noreply@github.com>2022-04-01 11:15:37 -0400
commit1c37ac33526dc45ad0b3f83ca8294dbb55548096 (patch)
tree426978168928c5e7c2223e4906005fa23fb34cd6 /cli/tests/integration/install_tests.rs
parent8ca4c1819f3e7a8716c68034e256355334d53b44 (diff)
chore(tests): use custom temp dir creation for the tests (#14153)
Diffstat (limited to 'cli/tests/integration/install_tests.rs')
-rw-r--r--cli/tests/integration/install_tests.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/integration/install_tests.rs b/cli/tests/integration/install_tests.rs
index 4ad767607..ebe587301 100644
--- a/cli/tests/integration/install_tests.rs
+++ b/cli/tests/integration/install_tests.rs
@@ -2,13 +2,13 @@
use std::fs;
use std::process::Command;
-use tempfile::TempDir;
use test_util as util;
+use test_util::TempDir;
#[test]
fn install_basic() {
let _guard = util::http_server();
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let temp_dir_str = temp_dir.path().to_string_lossy().to_string();
let status = util::deno_cmd()
@@ -50,7 +50,7 @@ fn install_basic() {
#[test]
fn install_custom_dir_env_var() {
let _guard = util::http_server();
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let temp_dir_str = temp_dir.path().to_string_lossy().to_string();
let status = util::deno_cmd()
@@ -87,7 +87,7 @@ fn install_custom_dir_env_var() {
#[test]
fn installer_test_local_module_run() {
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();
let status = util::deno_cmd()
@@ -124,7 +124,7 @@ fn installer_test_local_module_run() {
#[test]
fn installer_test_remote_module_run() {
let _g = util::http_server();
- let temp_dir = TempDir::new().unwrap();
+ let temp_dir = TempDir::new();
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir(&bin_dir).unwrap();
let status = util::deno_cmd()