diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2024-01-13 04:21:15 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2024-01-13 04:21:15 +0000 |
commit | 1923d2bdc31cd34b8cd807ed1593e39188225a87 (patch) | |
tree | 3dbbbdb027cfde4cdb1d7d31846a211d07644a4c /tests | |
parent | Refer to Helm chart by @wrenix (fixes #1215) (diff) | |
download | miniserve-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.rs | 4 |
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, |