fix(cli): raise doctor health check timeout to 1s

250ms was too aggressive: a server that was reachable but slightly slow
to answer /health made `fabro doctor` report a failed health check.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Christophe de Carvalho 2026-08-04 16:43:42 +01:00
parent e7fc25f62b
commit 8b25001985
2 changed files with 2 additions and 2 deletions

View file

@ -443,7 +443,7 @@ mod tests {
let target = ServerTarget::http_url(format!("http://{addr}")).unwrap();
let client = connect_target_api_client_bundle(&target).await.unwrap();
let result = time::timeout(Duration::from_millis(750), client.get_health()).await;
let result = time::timeout(Duration::from_secs(5), client.get_health()).await;
server.abort();
assert!(

View file

@ -37,7 +37,7 @@ use crate::{AuthEntry, OAuthEntry, StoredSubject, sse};
const DEFAULT_CONTROL_PLANE_REQUEST_TIMEOUT: std::time::Duration =
std::time::Duration::from_secs(30);
const DEFAULT_HEALTH_REQUEST_TIMEOUT: std::time::Duration = std::time::Duration::from_millis(250);
const DEFAULT_HEALTH_REQUEST_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(1);
type TransportFuture = BoxFuture<'static, Result<(fabro_http::HttpClient, String)>>;