From cf0ce2ce2b70a1b19b3554318fc69a4ecf4e083a Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Wed, 11 Mar 2020 15:18:15 +0100 Subject: Bump reqwests to v0.10 --- tests/auth.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/auth.rs') diff --git a/tests/auth.rs b/tests/auth.rs index 7074d00..4cabb77 100644 --- a/tests/auth.rs +++ b/tests/auth.rs @@ -5,6 +5,7 @@ use assert_fs::fixture::TempDir; use fixtures::{port, tmpdir, Error, FILES}; use pretty_assertions::assert_eq; use reqwest::StatusCode; +use reqwest::blocking::Client; use rstest::rstest; use select::document::Document; use select::predicate::Text; @@ -44,7 +45,7 @@ fn auth_accepts( sleep(Duration::from_secs(1)); - let client = reqwest::Client::new(); + let client = Client::new(); let response = client .get(format!("http://localhost:{}", port).as_str()) .basic_auth(client_username, Some(client_password)) @@ -108,7 +109,7 @@ fn auth_rejects( sleep(Duration::from_secs(1)); - let client = reqwest::Client::new(); + let client = Client::new(); let status = client .get(format!("http://localhost:{}", port).as_str()) .basic_auth(client_username, Some(client_password)) @@ -166,7 +167,7 @@ fn auth_multiple_accounts_pass( sleep(Duration::from_secs(1)); - let client = reqwest::Client::new(); + let client = Client::new(); let response = client .get(format!("http://localhost:{}", port).as_str()) @@ -201,7 +202,7 @@ fn auth_multiple_accounts_wrong_username(tmpdir: TempDir, port: u16) -> Result<( sleep(Duration::from_secs(1)); - let client = reqwest::Client::new(); + let client = Client::new(); let status = client .get(format!("http://localhost:{}", port).as_str()) @@ -244,7 +245,7 @@ fn auth_multiple_accounts_wrong_password( sleep(Duration::from_secs(1)); - let client = reqwest::Client::new(); + let client = Client::new(); let status = client .get(format!("http://localhost:{}", port).as_str()) -- cgit v1.2.3