{:error, :enoent} s3 fix
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 8 May 2020 15:51:16 +0000 (18:51 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 13 May 2020 08:38:21 +0000 (11:38 +0300)
s3 tests were executed before temp file was uploaded

test/uploaders/s3_test.exs

index 6950ccb254ef13100a06e22a74d41a4e474c6e43..d949c90a5c2ce183fb0a8d869a4f4edee1891ca4 100644 (file)
@@ -58,7 +58,7 @@ defmodule Pleroma.Uploaders.S3Test do
         name: "image-tet.jpg",
         content_type: "image/jpg",
         path: "test_folder/image-tet.jpg",
-        tempfile: Path.absname("test/fixtures/image_tmp.jpg")
+        tempfile: Path.absname("test/instance_static/add/shortcode.png")
       }
 
       [file_upload: file_upload]