aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2024-01-13 04:21:15 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2024-01-13 04:21:15 +0000
commit1923d2bdc31cd34b8cd807ed1593e39188225a87 (patch)
tree3dbbbdb027cfde4cdb1d7d31846a211d07644a4c /tests
parentRefer to Helm chart by @wrenix (fixes #1215) (diff)
downloadminiserve-1923d2bdc31cd34b8cd807ed1593e39188225a87.tar.gz
miniserve-1923d2bdc31cd34b8cd807ed1593e39188225a87.zip
Use tokio::fs instead of std::fs to enable async file operations (fixes #445)
Diffstat (limited to 'tests')
-rw-r--r--tests/upload_files.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/upload_files.rs b/tests/upload_files.rs
index 8cb3e8e..77a9dc3 100644
--- a/tests/upload_files.rs
+++ b/tests/upload_files.rs
@@ -122,8 +122,8 @@ fn uploading_files_is_restricted(#[case] server: TestServer) -> Result<(), Error
#[case(server(&["-u", "./-someDir"]), vec!["./-someDir"])]
#[case(server(&["-u", Path::new("someDir/some_sub_dir").to_str().unwrap()]),
vec!["someDir/some_sub_dir"])]
-#[case(server(&["-u", Path::new("someDir/some_sub_dir").to_str().unwrap(),
- "-u", Path::new("someDir/some_other_dir").to_str().unwrap()]),
+#[case(server(&["-u", Path::new("someDir/some_sub_dir").to_str().unwrap(),
+ "-u", Path::new("someDir/some_other_dir").to_str().unwrap()]),
vec!["someDir/some_sub_dir", "someDir/some_other_dir"])]
fn uploading_files_to_allowed_dir_works(
#[case] server: TestServer,