From: Mark Felder Date: Tue, 8 Jun 2021 19:49:57 +0000 (-0500) Subject: Blurhash varies slightly by computer generating it, so just validate it wasn't nil X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3121ed1325cceb8ec3f8d153d3c6fa18b2951714;p=akkoma Blurhash varies slightly by computer generating it, so just validate it wasn't nil --- diff --git a/test/pleroma/upload/filter/analyze_metadata_test.exs b/test/pleroma/upload/filter/analyze_metadata_test.exs index 97f5fe9b2..4b636a684 100644 --- a/test/pleroma/upload/filter/analyze_metadata_test.exs +++ b/test/pleroma/upload/filter/analyze_metadata_test.exs @@ -14,9 +14,10 @@ defmodule Pleroma.Upload.Filter.AnalyzeMetadataTest do tempfile: Path.absname("test/fixtures/image.jpg") } - assert {:ok, :filtered, - %{width: 1024, height: 768, blurhash: "V5DI,j_NIS%eI.RDI[RS%1WDr=IVD-RoV{?Ge-tiSKkR"}} = - AnalyzeMetadata.filter(upload) + {:ok, :filtered, meta} = AnalyzeMetadata.filter(upload) + + assert %{width: 1024, height: 768} = meta + assert meta.blurhash end test "adds the dimensions for videos" do