media_controller_test: Make sure uploader is the Local one

This commit is contained in:
Haelwenn (lanodan) Monnier 2023-08-02 12:36:42 +02:00 committed by Mark Felder
parent 2180537a2b
commit 3d0d2a4513

View file

@ -76,6 +76,7 @@ defmodule Pleroma.Web.MastodonAPI.MediaControllerTest do
end end
test "/api/v2/media, upload_limit", %{conn: conn, user: user} do test "/api/v2/media, upload_limit", %{conn: conn, user: user} do
clear_config([Pleroma.Upload, :uploader], Pleroma.Uploaders.Local)
desc = "Description of the binary" desc = "Description of the binary"
upload_limit = Config.get([:instance, :upload_limit]) * 8 + 8 upload_limit = Config.get([:instance, :upload_limit]) * 8 + 8