This is an automated email from the ASF dual-hosted git repository.

mbrobbel pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs-object-store.git


The following commit(s) were added to refs/heads/main by this push:
     new 7d35acf  Chore: fix emulator tests due to changes in reqwest (#401)
7d35acf is described below

commit 7d35acf1ead6c7a4eaaeca1e4138d5434dfeb1d7
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Jun 6 05:42:38 2025 -0400

    Chore: fix emulator tests due to changes in reqwest (#401)
---
 src/aws/builder.rs  | 3 ++-
 src/client/retry.rs | 2 +-
 src/gcp/builder.rs  | 3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/aws/builder.rs b/src/aws/builder.rs
index 3aaad04..2774271 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 fb09813..b6097d9 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 8d062a2..87e28d5 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();

Reply via email to