aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cli.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/cli.rs b/tests/cli.rs
index 49a1309..a67f5de 100644
--- a/tests/cli.rs
+++ b/tests/cli.rs
@@ -90,10 +90,13 @@ fn serves_requests_with_non_default_port(tmpdir: TempDir, port: u16) -> Result<(
"testpassword"
),
)]
-fn auth_works(cli_auth_arg: &str, client_username: &str, client_password: &str) -> Result<(), Error> {
- let tmpdir = self::tmpdir();
- let port = self::port();
-
+fn auth_works(
+ tmpdir: TempDir,
+ port: u16,
+ cli_auth_arg: &str,
+ client_username: &str,
+ client_password: &str
+) -> Result<(), Error> {
let mut child = Command::cargo_bin("miniserve")?
.arg(tmpdir.path())
.arg("-p")