Skip to content

Commit 7d35acf

Browse files
authored
Chore: fix emulator tests due to changes in reqwest (#401)
1 parent 9c43521 commit 7d35acf

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/aws/builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,8 @@ mod tests {
15261526
.with_region("region")
15271527
.with_bucket_name("bucket_name")
15281528
.with_allow_http(true)
1529-
.with_proxy_url("asdf://example.com")
1529+
// use invalid url
1530+
.with_proxy_url("dxx:ddd\\example.com")
15301531
.build()
15311532
.unwrap_err()
15321533
.to_string();

src/client/retry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ mod tests {
622622
assert_eq!(r.status(), StatusCode::OK);
623623

624624
// Handles redirect loop
625-
for _ in 0..10 {
625+
for _ in 0..11 {
626626
mock.push(
627627
Response::builder()
628628
.status(StatusCode::FOUND)

src/gcp/builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,8 @@ mod tests {
674674
let err = GoogleCloudStorageBuilder::new()
675675
.with_service_account_path(service_account_path.to_str().unwrap())
676676
.with_bucket_name("foo")
677-
.with_proxy_url("asdf://example.com")
677+
// use invalid url
678+
.with_proxy_url("dxx:ddd\\example.com")
678679
.build()
679680
.unwrap_err()
680681
.to_string();

0 commit comments

Comments
 (0)