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/serve_request.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/serve_request.rs') diff --git a/tests/serve_request.rs b/tests/serve_request.rs index 064e196..9c30bb8 100644 --- a/tests/serve_request.rs +++ b/tests/serve_request.rs @@ -19,7 +19,7 @@ fn serves_requests_with_no_options(tmpdir: TempDir) -> Result<(), Error> { sleep(Duration::from_secs(1)); - let body = reqwest::get("http://localhost:8080")?.error_for_status()?; + let body = reqwest::blocking::get("http://localhost:8080")?.error_for_status()?; let parsed = Document::from_read(body)?; for &file in FILES { assert!(parsed.find(|x: &Node| x.text() == file).next().is_some()); @@ -41,7 +41,7 @@ fn serves_requests_with_non_default_port(tmpdir: TempDir, port: u16) -> Result<( sleep(Duration::from_secs(1)); - let body = reqwest::get(format!("http://localhost:{}", port).as_str())?.error_for_status()?; + let body = reqwest::blocking::get(format!("http://localhost:{}", port).as_str())?.error_for_status()?; let parsed = Document::from_read(body)?; for &file in FILES { assert!(parsed.find(|x: &Node| x.text() == file).next().is_some()); @@ -51,7 +51,7 @@ fn serves_requests_with_non_default_port(tmpdir: TempDir, port: u16) -> Result<( .find(|x: &Node| x.text() == directory) .next() .is_some()); - let dir_body = reqwest::get(format!("http://localhost:{}/{}", port, directory).as_str())? + let dir_body = reqwest::blocking::get(format!("http://localhost:{}/{}", port, directory).as_str())? .error_for_status()?; let dir_body_parsed = Document::from_read(dir_body)?; for &file in FILES { -- cgit v1.2.3