-
Notifications
You must be signed in to change notification settings - Fork 102
Chore: fix emulator tests due to changes in reqwest #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| // Handles redirect loop | ||
| for _ in 0..10 { | ||
| for _ in 0..11 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this change is needed due to seanmonstar/reqwest#2664
without this change the test fails because the redirect loop fails to trigger the limit
| .with_bucket_name("bucket_name") | ||
| .with_allow_http(true) | ||
| .with_proxy_url("asdf://example.com") | ||
| // use invalid url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect, but don't know, that this change is required by
the test expects the proxy config to fail, but after the reqwest upgrade it was passing
| .with_service_account_path(service_account_path.to_str().unwrap()) | ||
| .with_bucket_name("foo") | ||
| .with_proxy_url("asdf://example.com") | ||
| // use invalid url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
Which issue does this PR close?
Rationale for this change
The CI tests started failing on main
I tracked the issue down to starting with the releas of reqwest
0.12.16: https://crates.io/crates/reqwest/0.12.16See the changelog here: https://github.com/seanmonstar/reqwest/releases/tag/v0.12.16
What changes are included in this PR?
Are there any user-facing changes?