test(net): make retry and loader coverage deterministic
This commit is contained in:
1 parent
45ce7ef84b
commit
dc13746841
5 files changed
+96
-53
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user