1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 12:45:41 +02:00

Refactor/client builder (#2053)

This commit is contained in:
fakeshadow
2021-03-07 15:57:32 -08:00
committed by GitHub
parent 2d3a0d6038
commit 5b4105e1e6
4 changed files with 41 additions and 11 deletions

View File

@@ -292,7 +292,7 @@ mod tests {
#[actix_rt::test]
async fn test_basic_redirect() {
let client = ClientBuilder::new()
.connector(crate::Connector::new())
.disable_redirects()
.wrap(Redirect::new().max_redirect_times(10))
.finish();
@@ -318,6 +318,7 @@ mod tests {
#[actix_rt::test]
async fn test_redirect_limit() {
let client = ClientBuilder::new()
.disable_redirects()
.wrap(Redirect::new().max_redirect_times(1))
.connector(crate::Connector::new())
.finish();