From d252b13820827a13f98c3067f3d79e6b9d75440b Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 19 Feb 2026 05:35:13 -0600 Subject: [PATCH] Increase backoff duration and maximum retry attempts in server initialization - Updated the `BASE_DURATION_MS` constant from 30.0 to 100.0 to allow for longer wait times during server startup. - Increased the `MAX_TRIES` constant from 5 to 10 to provide more attempts for the server to come online before failing. These changes aim to improve the reliability of server initialization by allowing for more extended backoff periods and retries. --- tests/rojo_test/serve_util.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/rojo_test/serve_util.rs b/tests/rojo_test/serve_util.rs index 530a1262..a7b93c42 100644 --- a/tests/rojo_test/serve_util.rs +++ b/tests/rojo_test/serve_util.rs @@ -281,9 +281,9 @@ impl TestServeSession { /// backoff. If the process dies with `AddrInUse`, respawns with a new /// random port (up to `MAX_PORT_RETRIES` times). pub fn wait_to_come_online(&mut self) -> ServerInfoResponse { - const BASE_DURATION_MS: f32 = 30.0; + const BASE_DURATION_MS: f32 = 100.0; const EXP_BACKOFF_FACTOR: f32 = 1.3; - const MAX_TRIES: u32 = 5; + const MAX_TRIES: u32 = 10; const MAX_PORT_RETRIES: u32 = 3; let mut port_retries = 0u32; @@ -976,9 +976,9 @@ pub fn fresh_rebuild_read(project_path: &Path) -> NormalizedInstance { ); }; - const BASE_DURATION_MS: f32 = 30.0; + const BASE_DURATION_MS: f32 = 100.0; const EXP_BACKOFF_FACTOR: f32 = 1.3; - const MAX_TRIES: u32 = 5; + const MAX_TRIES: u32 = 10; const MAX_PORT_RETRIES: u32 = 3; let working_dir = get_working_dir_path();