(server: &str, tls: &TlsOptions)
| 1447 | } |
| 1448 | |
| 1449 | async fn gateway_reachable(server: &str, tls: &TlsOptions) -> bool { |
| 1450 | if let Ok(mut client) = grpc_client(server, tls).await |
| 1451 | && client.health(HealthRequest {}).await.is_ok() |
| 1452 | { |
| 1453 | return true; |
| 1454 | } |
| 1455 | |
| 1456 | matches!(http_health_check(server, tls).await, Ok(Some(status)) if status.is_success()) |
| 1457 | } |
| 1458 | |
| 1459 | fn is_browser_suppressed() -> bool { |
| 1460 | std::env::var("OPENSHELL_NO_BROWSER").is_ok_and(|v| v == "1" || v.eq_ignore_ascii_case("true")) |
no test coverage detected