diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-04-15 23:55:09 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-04-15 23:55:09 +0000 |
commit | 182df9a0af0190fe4b19aaaffdd7115d137f8c19 (patch) | |
tree | 0d1c2815626a7f486460a856171e6d12acf21630 | |
parent | Set up testing infrastructure and add some integration tests (fixes #68) (diff) | |
download | miniserve-182df9a0af0190fe4b19aaaffdd7115d137f8c19.tar.gz miniserve-182df9a0af0190fe4b19aaaffdd7115d137f8c19.zip |
Fix port
Diffstat (limited to '')
-rw-r--r-- | tests/cli.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |