test: fix content-length value type

All headers are strings, always.
In this case it didn't matter atm,
but let’s not provide confusing examples.
This commit is contained in:
Oneric 2024-06-05 19:59:59 +02:00
parent 778b213945
commit 68fe0a9633

View file

@ -110,7 +110,7 @@ test "it returns signature headers" do
headers = %{ headers = %{
host: "test.test", host: "test.test",
"content-length": 100 "content-length": "100"
} }
assert_signature_equal( assert_signature_equal(
@ -127,7 +127,7 @@ test "it returns error" do
assert Signature.sign( assert Signature.sign(
user, user,
%{host: "test.test", "content-length": 100} %{host: "test.test", "content-length": "100"}
) == {:error, []} ) == {:error, []}
end end
end end