From 68fe0a96335778c017d58eae779a1970b7b73d8b Mon Sep 17 00:00:00 2001 From: Oneric Date: Wed, 5 Jun 2024 19:59:59 +0200 Subject: [PATCH] test: fix content-length value type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All headers are strings, always. In this case it didn't matter atm, but let’s not provide confusing examples. --- test/pleroma/signature_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pleroma/signature_test.exs b/test/pleroma/signature_test.exs index b7c9bbb62..768c78f21 100644 --- a/test/pleroma/signature_test.exs +++ b/test/pleroma/signature_test.exs @@ -110,7 +110,7 @@ defmodule Pleroma.SignatureTest do headers = %{ host: "test.test", - "content-length": 100 + "content-length": "100" } assert_signature_equal( @@ -127,7 +127,7 @@ defmodule Pleroma.SignatureTest do assert Signature.sign( user, - %{host: "test.test", "content-length": 100} + %{host: "test.test", "content-length": "100"} ) == {:error, []} end end