diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-06 21:06:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 01:06:01 +0000 |
commit | 1587387bccb6dbecd85f5141dd7543f013d47cd8 (patch) | |
tree | b9829c3e50442deff360cf664555935a0d16a4db /tests/util/server/src/lib.rs | |
parent | 87d1ead7d09638172b0e397c8209c759666514da (diff) |
chore(test): move npm registries to separate servers and to the `tests/registry` folder (#23717)
1. Moves the npm registries to their own dedicated ports.
2. Moves the data files out of `tests/testdata/npm/registry` to
`tests/registry/npm`.
Diffstat (limited to 'tests/util/server/src/lib.rs')
-rw-r--r-- | tests/util/server/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/util/server/src/lib.rs b/tests/util/server/src/lib.rs index c1046c528..eb881e1b7 100644 --- a/tests/util/server/src/lib.rs +++ b/tests/util/server/src/lib.rs @@ -175,7 +175,7 @@ pub fn deno_config_path() -> PathRef { /// Test server registry url. pub fn npm_registry_url() -> String { - "http://localhost:4545/npm/registry/".to_string() + "http://localhost:4558/".to_string() } pub fn npm_registry_unset_url() -> String { @@ -304,6 +304,8 @@ async fn get_tcp_listener_stream( futures::stream::select_all(listeners) } +pub const TEST_SERVERS_COUNT: usize = 28; + #[derive(Default)] struct HttpServerCount { count: usize, @@ -358,7 +360,7 @@ impl Default for HttpServerStarter { if line.starts_with("ready:") { ready_count += 1; } - if ready_count == 12 { + if ready_count == TEST_SERVERS_COUNT { break; } } else { |