diff --git a/src/aws/builder.rs b/src/aws/builder.rs index 3aaad04f..27742716 100644 --- a/src/aws/builder.rs +++ b/src/aws/builder.rs @@ -1526,7 +1526,8 @@ mod tests { .with_region("region") .with_bucket_name("bucket_name") .with_allow_http(true) - .with_proxy_url("asdf://example.com") + // use invalid url + .with_proxy_url("dxx:ddd\\example.com") .build() .unwrap_err() .to_string(); diff --git a/src/client/retry.rs b/src/client/retry.rs index fb098137..b6097d92 100644 --- a/src/client/retry.rs +++ b/src/client/retry.rs @@ -622,7 +622,7 @@ mod tests { assert_eq!(r.status(), StatusCode::OK); // Handles redirect loop - for _ in 0..10 { + for _ in 0..11 { mock.push( Response::builder() .status(StatusCode::FOUND) diff --git a/src/gcp/builder.rs b/src/gcp/builder.rs index 8d062a2d..87e28d5a 100644 --- a/src/gcp/builder.rs +++ b/src/gcp/builder.rs @@ -674,7 +674,8 @@ mod tests { let err = GoogleCloudStorageBuilder::new() .with_service_account_path(service_account_path.to_str().unwrap()) .with_bucket_name("foo") - .with_proxy_url("asdf://example.com") + // use invalid url + .with_proxy_url("dxx:ddd\\example.com") .build() .unwrap_err() .to_string();