diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-05-20 21:02:39 +0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2021-05-31 16:37:32 +0200 |
commit | 47ec33eca7b71b7f53c826dc97f37da4d4700499 (patch) | |
tree | bb75fd540d0ee8ec8abe359a54c7ef018431c592 | |
parent | 176075980bfdc8b07f70db3229bd2df9b6ace018 (diff) |
fix(cli/tools/test_runner): --doc should not require permissions (#10719)
-rw-r--r-- | cli/tests/integration_tests.rs | 2 | ||||
-rw-r--r-- | cli/tools/test_runner.rs | 3 |
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 = |