forked from AkkomaGang/akkoma
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:
parent
778b213945
commit
68fe0a9633
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue