From 182df9a0af0190fe4b19aaaffdd7115d137f8c19 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Tue, 16 Apr 2019 01:55:09 +0200 Subject: Fix port --- tests/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cli.rs') diff --git a/tests/cli.rs b/tests/cli.rs index 14b81f3..a4b3051 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -60,7 +60,7 @@ fn starts_ok_with_non_default_port() -> Result<(), Error> { sleep(Duration::from_secs(1)); - let body = reqwest::get("http://localhost:8080")?; + let body = reqwest::get(format!("http://localhost:{}", port).as_str())?; let parsed = Document::from_read(body)?; for &file in FILES { assert!(parsed.find(Text).any(|x| x.text() == file)); -- cgit v1.2.3