From 91a9c31859e8147b5df2fa32b5f2dce2ee2b5f68 Mon Sep 17 00:00:00 2001 From: Mathieu Baudet <1105398+ma2bd@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:10:01 +0200 Subject: [PATCH] Fix ensure_grpc_server_has_started (#2145) --- linera-service/src/cli_wrappers/local_net.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linera-service/src/cli_wrappers/local_net.rs b/linera-service/src/cli_wrappers/local_net.rs index d92c7d69138..4d69077f061 100644 --- a/linera-service/src/cli_wrappers/local_net.rs +++ b/linera-service/src/cli_wrappers/local_net.rs @@ -550,8 +550,9 @@ impl LocalNet { .context("endpoint should always parse")? .connect_lazy(); let mut client = HealthClient::new(connection); + tokio::time::sleep(Duration::from_millis(100)).await; for i in 0..10 { - tokio::time::sleep(Duration::from_secs(i)).await; + tokio::time::sleep(Duration::from_millis(i * 500)).await; let result = client.check(HealthCheckRequest::default()).await; if result.is_ok() && result.unwrap().get_ref().status() == ServingStatus::Serving { info!("Successfully started {nickname}");