summaryrefslogtreecommitdiff
path: root/tests/util/server/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util/server/src/lib.rs')
-rw-r--r--tests/util/server/src/lib.rs6
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 {