diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-02-06 21:06:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 02:06:34 +0000 |
commit | 227ec14e6ca596bb4ddcb2ee2ec82311f0ac87e5 (patch) | |
tree | 5d932e90505ab2879b6eea10cbdbdc63857fed7e /test_util/src/lib.rs | |
parent | 043fee48fd72fbce2357e93431753db5b086cffd (diff) |
chore: use same test server for jsr tests (#22303)
We had two test servers.
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index bcd58a3a6..9bf68cbc2 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -100,7 +100,11 @@ pub fn npm_registry_unset_url() -> String { } pub fn jsr_registry_url() -> String { - "http://localhost:4545/jsr/registry/".to_string() + "http://127.0.0.1:4250/".to_string() +} + +pub fn jsr_registry_unset_url() -> String { + "http://DENO_REGISTRY_URL.is.unset".to_string() } pub fn std_path() -> PathRef { @@ -441,6 +445,7 @@ pub fn deno_cmd_with_deno_dir(deno_dir: &TempDir) -> TestCommandBuilder { TestCommandBuilder::new(deno_dir.clone()) .env("DENO_DIR", deno_dir.path()) .env("NPM_CONFIG_REGISTRY", npm_registry_unset_url()) + .env("DENO_REGISTRY_URL", jsr_registry_unset_url()) } pub fn run_powershell_script_file( |