Skip to content

Commit

Permalink
Fix ensure_grpc_server_has_started (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd authored Jun 17, 2024
1 parent a114050 commit 91a9c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linera-service/src/cli_wrappers/local_net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit 91a9c31

Please sign in to comment.