aboutsummaryrefslogtreecommitdiffstats
path: root/tests/archive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/archive.rs')
-rw-r--r--tests/archive.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/archive.rs b/tests/archive.rs
index e4cca81..c170bc3 100644
--- a/tests/archive.rs
+++ b/tests/archive.rs
@@ -17,7 +17,6 @@ fn archives_are_disabled(tmpdir: TempDir, port: u16) -> Result<(), Error> {
.arg(tmpdir.path())
.arg("-p")
.arg(port.to_string())
- .arg("-r")
.stdout(Stdio::null())
.spawn()?;
@@ -42,6 +41,11 @@ fn archives_are_disabled(tmpdir: TempDir, port: u16) -> Result<(), Error> {
.status(),
StatusCode::FORBIDDEN
);
+ assert_eq!(
+ reqwest::blocking::get(format!("http://localhost:{}/?download=zip", port).as_str())?
+ .status(),
+ StatusCode::FORBIDDEN
+ );
child.kill()?;