diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs index a2bd0edead..de251947bd 100644 --- a/cli/tools/test_runner.rs +++ b/cli/tools/test_runner.rs @@ -346,7 +346,10 @@ pub async fn run_tests( let lines_regex = Regex::new(r"(?:\* ?)(?:\# ?)?(.*)")?; for specifier in &doc_modules { - let file = program_state.file_fetcher.get_source(&specifier).unwrap(); + let file = program_state + .file_fetcher + .fetch(&specifier, &mut permissions.clone()) + .await?; let parsed_module = ast::parse(&file.specifier.as_str(), &file.source, &file.media_type)?;