mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
test(ecstore): cover DNS resolver raw errors (#3674)
This commit is contained in:
@@ -1039,6 +1039,12 @@ mod test {
|
||||
assert!(is_retryable_dns_error(&Error::other("nodename nor servname provided, or not known")));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn retryable_dns_error_accepts_resolver_raw_os_codes() {
|
||||
assert!(is_retryable_dns_error(&Error::from_raw_os_error(-3)));
|
||||
assert!(is_retryable_dns_error(&Error::from_raw_os_error(-2)));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn retryable_dns_error_rejects_configuration_errors() {
|
||||
assert!(!is_retryable_dns_error(&Error::new(
|
||||
|
||||
Reference in New Issue
Block a user