mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Merge pull request #724 from zaibon/fix/doctor-health-timeout
fix(cli): raise doctor health check timeout to 1s
This commit is contained in:
commit
5ed32c1d20
2 changed files with 2 additions and 2 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
|
|
@ -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)>>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue