diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-19 09:32:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 10:32:21 -0400 |
commit | 1464b756a4ef091ef97d1bf7340188ab5fe5492a (patch) | |
tree | 2eff346ccf5782c501460aec63a5028742066fa6 /cli/file_fetcher.rs | |
parent | 8d50c09c0db4e9b0644263cde3f7ff990ec75259 (diff) |
refactor: move out test files from root testdata directory into sub directories (#15949)
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index 044707cff..3e3776f24 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -1551,7 +1551,8 @@ mod tests { None, ) .unwrap(); - let specifier = resolve_url("http://localhost:4545/002_hello.ts").unwrap(); + let specifier = + resolve_url("http://localhost:4545/run/002_hello.ts").unwrap(); let result = file_fetcher .fetch(&specifier, &mut Permissions::allow_all()) @@ -1559,7 +1560,7 @@ mod tests { assert!(result.is_err()); let err = result.unwrap_err(); assert_eq!(get_custom_error_class(&err), Some("NoRemote")); - assert_eq!(err.to_string(), "A remote specifier was requested: \"http://localhost:4545/002_hello.ts\", but --no-remote is specified."); + assert_eq!(err.to_string(), "A remote specifier was requested: \"http://localhost:4545/run/002_hello.ts\", but --no-remote is specified."); } #[tokio::test] @@ -1587,7 +1588,8 @@ mod tests { None, ) .unwrap(); - let specifier = resolve_url("http://localhost:4545/002_hello.ts").unwrap(); + let specifier = + resolve_url("http://localhost:4545/run/002_hello.ts").unwrap(); let result = file_fetcher_01 .fetch(&specifier, &mut Permissions::allow_all()) @@ -1595,7 +1597,7 @@ mod tests { assert!(result.is_err()); let err = result.unwrap_err(); assert_eq!(get_custom_error_class(&err), Some("NotCached")); - assert_eq!(err.to_string(), "Specifier not found in cache: \"http://localhost:4545/002_hello.ts\", --cached-only is specified."); + assert_eq!(err.to_string(), "Specifier not found in cache: \"http://localhost:4545/run/002_hello.ts\", --cached-only is specified."); let result = file_fetcher_02 .fetch(&specifier, &mut Permissions::allow_all()) |