diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-03-11 14:18:15 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-03-11 14:18:15 +0000 |
commit | cf0ce2ce2b70a1b19b3554318fc69a4ecf4e083a (patch) | |
tree | 16576efac3d8b4f4e004d5c4fe6ae85fdcbbe28c /tests/auth.rs | |
parent | Merge pull request #272 from svenstaro/dependabot/cargo/base64-0.12.0 (diff) | |
download | miniserve-cf0ce2ce2b70a1b19b3554318fc69a4ecf4e083a.tar.gz miniserve-cf0ce2ce2b70a1b19b3554318fc69a4ecf4e083a.zip |
Bump reqwests to v0.10
Diffstat (limited to '')
-rw-r--r-- | tests/auth.rs | 11 |
1 files changed, 6 insertions, 5 deletions
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()) |