From 36b041a07183c69eb40c9ae74b0a9ab4c6ccbd53 Mon Sep 17 00:00:00 2001 From: Jonas Diemer Date: Wed, 3 Aug 2022 14:51:20 +0200 Subject: Avoid error message during testing of restricted --- tests/upload_files.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/upload_files.rs') diff --git a/tests/upload_files.rs b/tests/upload_files.rs index 7bd85df..35569cb 100644 --- a/tests/upload_files.rs +++ b/tests/upload_files.rs @@ -83,8 +83,8 @@ fn uploading_files_is_prevented(server: TestServer) -> Result<(), Error> { // This test runs the server with --restrict-upload-dir argument and // checks that file upload to a different directory is actually prevented. #[rstest] -#[case(server(&["-u", "--restrict-upload-dir", "someDir"]))] -#[case(server(&["-u", "--restrict-upload-dir", "someDir/some_sub_dir"]))] +#[case(server_no_stderr(&["-u", "--restrict-upload-dir", "someDir"]))] +#[case(server_no_stderr(&["-u", "--restrict-upload-dir", "someDir/some_sub_dir"]))] fn uploading_files_is_restricted( #[case] server: TestServer ) -> Result<(), Error> { -- cgit v1.2.3