summaryrefslogtreecommitdiff
path: root/cli/tests/integration/run_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
-rw-r--r--cli/tests/integration/run_tests.rs34
1 files changed, 17 insertions, 17 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index fb6f72c6e..43a761204 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -2,8 +2,8 @@
use deno_core::url;
use std::process::Command;
-use tempfile::TempDir;
use test_util as util;
+use test_util::TempDir;
itest!(stdout_write_all {
args: "run --quiet stdout_write_all.ts",
@@ -253,7 +253,7 @@ itest!(webstorage_serialization {
fn webstorage_location_shares_origin() {
let deno_dir = util::new_deno_dir();
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -268,7 +268,7 @@ fn webstorage_location_shares_origin() {
assert!(output.status.success());
assert_eq!(output.stdout, b"Storage { length: 0 }\n");
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -290,7 +290,7 @@ fn webstorage_location_shares_origin() {
fn webstorage_config_file() {
let deno_dir = util::new_deno_dir();
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -305,7 +305,7 @@ fn webstorage_config_file() {
assert!(output.status.success());
assert_eq!(output.stdout, b"Storage { length: 0 }\n");
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -320,7 +320,7 @@ fn webstorage_config_file() {
assert!(output.status.success());
assert_eq!(output.stdout, b"Storage { length: 0 }\n");
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -342,7 +342,7 @@ fn webstorage_config_file() {
fn webstorage_location_precedes_config() {
let deno_dir = util::new_deno_dir();
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -359,7 +359,7 @@ fn webstorage_location_precedes_config() {
assert!(output.status.success());
assert_eq!(output.stdout, b"Storage { length: 0 }\n");
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -383,7 +383,7 @@ fn webstorage_location_precedes_config() {
fn webstorage_main_module() {
let deno_dir = util::new_deno_dir();
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -396,7 +396,7 @@ fn webstorage_main_module() {
assert!(output.status.success());
assert_eq!(output.stdout, b"Storage { length: 0 }\n");
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -409,7 +409,7 @@ fn webstorage_main_module() {
assert!(output.status.success());
assert_eq!(output.stdout, b"Storage { length: 0 }\n");
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -466,7 +466,7 @@ itest!(_082_prepare_stack_trace_throw {
#[test]
fn _083_legacy_external_source_map() {
let _g = util::http_server();
- let deno_dir = TempDir::new().unwrap();
+ let deno_dir = TempDir::new();
let module_url =
url::Url::parse("http://localhost:4545/083_legacy_external_source_map.ts")
.unwrap();
@@ -1804,7 +1804,7 @@ fn rust_log() {
fn dont_cache_on_check_fail() {
let deno_dir = util::new_deno_dir();
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -1818,7 +1818,7 @@ fn dont_cache_on_check_fail() {
assert!(!output.status.success());
assert!(!output.stderr.is_empty());
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let output = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -2368,7 +2368,7 @@ itest!(eval_context_throw_dom_exception {
fn issue12453() {
let _g = util::http_server();
let deno_dir = util::new_deno_dir();
- let mut deno_cmd = util::deno_cmd_with_deno_dir(deno_dir.path());
+ let mut deno_cmd = util::deno_cmd_with_deno_dir(&deno_dir);
let status = deno_cmd
.current_dir(util::testdata_path())
.arg("run")
@@ -2385,7 +2385,7 @@ fn issue12453() {
/// Regression test for https://github.com/denoland/deno/issues/12740.
#[test]
fn issue12740() {
- let mod_dir = TempDir::new().unwrap();
+ let mod_dir = TempDir::new();
let mod1_path = mod_dir.path().join("mod1.ts");
let mod2_path = mod_dir.path().join("mod2.ts");
let mut deno_cmd = util::deno_cmd();
@@ -2419,7 +2419,7 @@ fn issue12740() {
/// Regression test for https://github.com/denoland/deno/issues/12807.
#[test]
fn issue12807() {
- let mod_dir = TempDir::new().unwrap();
+ let mod_dir = TempDir::new();
let mod1_path = mod_dir.path().join("mod1.ts");
let mod2_path = mod_dir.path().join("mod2.ts");
let mut deno_cmd = util::deno_cmd();