test(net): make retry and loader coverage deterministic

This commit is contained in:
objz committed 2026-07-27 01:10:04 +02:00
1 parent 45ce7ef84b
commit dc13746841
5 files changed
+96 -53

No files matched your search

+6
View File
@@ -39,6 +39,12 @@ impl Default for HttpClient {
}
}
impl From<Client> for HttpClient {
fn from(inner: Client) -> Self {
Self { inner }
}
}
impl NetError {
pub(crate) fn is_retryable(&self) -> bool {
matches!(self, Self::StatusError { status: 429, .. }) || is_retryable(self)