From ac9587b9d134d2826075c855c9656342926233ce Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 3 Aug 2021 18:47:46 +0200 Subject: [PATCH] Don't assert file size in upload factory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since it can be tested in different environments (obsolete systems, docker, different ImageMagick versions…), file optimization might get different results depending on system Signed-off-by: Thomas Citharel --- test/support/factory.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/support/factory.ex b/test/support/factory.ex index a450f11d5..0c896ab98 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -273,8 +273,7 @@ defmodule Mobilizon.Factory do %{ content_type: "image/jpeg", name: "image.jpg", - url: url, - size: 13_227 + url: url } = data %Mobilizon.Medias.File{