refactor: stabilize heal format recovery integration tests (#1984)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
安正超
2026-02-27 15:26:19 +08:00
committed by GitHub
parent 3433dfa88e
commit 9d2b8822cf
26 changed files with 849 additions and 125 deletions
+5 -1
View File
@@ -225,7 +225,11 @@ pub fn must_get_local_ips() -> std::io::Result<Vec<IpAddr>> {
}
pub fn get_default_location(_u: Url, _region_override: &str) -> String {
todo!();
if !_region_override.is_empty() {
return _region_override.to_string();
}
_u.host().map(|host| host.to_string()).unwrap_or_default()
}
pub fn get_endpoint_url(endpoint: &str, secure: bool) -> Result<Url, Error> {
+12 -1
View File
@@ -15,6 +15,7 @@
use futures::Stream;
use hyper::http;
use std::{
io::ErrorKind,
pin::Pin,
sync::LazyLock,
task::{Context, Poll},
@@ -157,7 +158,17 @@ pub fn is_request_error_retryable(_err: std::io::Error) -> bool {
};
}
true*/
todo!();
matches!(
_err.kind(),
ErrorKind::Interrupted
| ErrorKind::WouldBlock
| ErrorKind::TimedOut
| ErrorKind::ConnectionAborted
| ErrorKind::ConnectionRefused
| ErrorKind::ConnectionReset
| ErrorKind::NotConnected
| ErrorKind::UnexpectedEof
)
}
#[cfg(test)]