summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/tests/integration_tests.rs2
-rw-r--r--cli/tools/test_runner.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index ce1205698..aff073d0d 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -24,7 +24,6 @@ use tokio::task::LocalSet;
fn typecheck_declarations_ns() {
let status = util::deno_cmd()
.arg("test")
- .arg("--allow-all")
.arg("--doc")
.arg(util::root_path().join("cli/dts/lib.deno.ns.d.ts"))
.spawn()
@@ -41,7 +40,6 @@ fn typecheck_declarations_unstable() {
let status = util::deno_cmd()
.arg("test")
.arg("--doc")
- .arg("--allow-all")
.arg("--unstable")
.arg(util::root_path().join("cli/dts/lib.deno.unstable.d.ts"))
.spawn()
diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs
index ddfad8199..c650b2d64 100644
--- a/cli/tools/test_runner.rs
+++ b/cli/tools/test_runner.rs
@@ -338,9 +338,10 @@ pub async fn run_tests(
let lines_regex = Regex::new(r"(?:\* ?)(?:\# ?)?(.*)")?;
for specifier in &doc_modules {
+ let mut fetch_permissions = Permissions::allow_all();
let file = program_state
.file_fetcher
- .fetch(&specifier, &mut permissions.clone())
+ .fetch(&specifier, &mut fetch_permissions)
.await?;
let parsed_module =