Merge pull request #724 from zaibon/fix/doctor-health-timeout

fix(cli): raise doctor health check timeout to 1s
This commit is contained in:
Bryan Helmkamp 2026-08-04 11:59:42 -04:00 committed by GitHub
commit 5ed32c1d20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)>>;