diff options
Diffstat (limited to 'test_napi/tests/napi_tests.rs')
-rw-r--r-- | test_napi/tests/napi_tests.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test_napi/tests/napi_tests.rs b/test_napi/tests/napi_tests.rs index c3ce285e0..0b0c9d311 100644 --- a/test_napi/tests/napi_tests.rs +++ b/test_napi/tests/napi_tests.rs @@ -2,6 +2,8 @@ use std::process::Command; use test_util::deno_cmd; +use test_util::env_vars_for_npm_tests; +use test_util::http_server; #[cfg(debug_assertions)] const BUILD_VARIANT: &str = "debug"; @@ -53,6 +55,7 @@ fn build() { fn napi_tests() { build(); + let _http_guard = http_server(); let output = deno_cmd() .current_dir(test_util::napi_tests_path()) .env("RUST_BACKTRACE", "1") @@ -61,6 +64,7 @@ fn napi_tests() { .arg("--allow-env") .arg("--allow-ffi") .arg("--allow-run") + .envs(env_vars_for_npm_tests()) .spawn() .unwrap() .wait_with_output() |