forked from AkkomaGang/akkoma
Merge pull request 'Elixir 1.13 fixes' (#8) from bugfix/elixir-1.13 into develop
Reviewed-on: https://codeberg.org/newroma-dev/newroma/pulls/8 Reviewed-by: floatingghost <floatingghost@noreply.codeberg.org>
This commit is contained in:
commit
4d30ffed3e
3 changed files with 7 additions and 7 deletions
|
@ -130,7 +130,7 @@ defmodule Pleroma.ReverseProxyTest do
|
||||||
assert capture_log(fn ->
|
assert capture_log(fn ->
|
||||||
ReverseProxy.call(conn, "/stream-bytes/50", max_body_length: 30)
|
ReverseProxy.call(conn, "/stream-bytes/50", max_body_length: 30)
|
||||||
end) =~
|
end) =~
|
||||||
"[warn] Elixir.Pleroma.ReverseProxy request to /stream-bytes/50 failed while reading/chunking: :body_too_large"
|
"Elixir.Pleroma.ReverseProxy request to /stream-bytes/50 failed while reading/chunking: :body_too_large"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
|
||||||
|
|
||||||
assert capture_log(fn ->
|
assert capture_log(fn ->
|
||||||
assert Utils.date_to_asctime(date) == expected
|
assert Utils.date_to_asctime(date) == expected
|
||||||
end) =~ "[warn] Date #{date} in wrong format, must be ISO 8601"
|
end) =~ "Date #{date} in wrong format, must be ISO 8601"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "when date is a Unix timestamp" do
|
test "when date is a Unix timestamp" do
|
||||||
|
@ -319,7 +319,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
|
||||||
|
|
||||||
assert capture_log(fn ->
|
assert capture_log(fn ->
|
||||||
assert Utils.date_to_asctime(date) == expected
|
assert Utils.date_to_asctime(date) == expected
|
||||||
end) =~ "[warn] Date #{date} in wrong format, must be ISO 8601"
|
end) =~ "Date #{date} in wrong format, must be ISO 8601"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "when date is nil" do
|
test "when date is nil" do
|
||||||
|
@ -327,13 +327,13 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
|
||||||
|
|
||||||
assert capture_log(fn ->
|
assert capture_log(fn ->
|
||||||
assert Utils.date_to_asctime(nil) == expected
|
assert Utils.date_to_asctime(nil) == expected
|
||||||
end) =~ "[warn] Date in wrong format, must be ISO 8601"
|
end) =~ "Date in wrong format, must be ISO 8601"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "when date is a random string" do
|
test "when date is a random string" do
|
||||||
assert capture_log(fn ->
|
assert capture_log(fn ->
|
||||||
assert Utils.date_to_asctime("foo") == ""
|
assert Utils.date_to_asctime("foo") == ""
|
||||||
end) =~ "[warn] Date foo in wrong format, must be ISO 8601"
|
end) =~ "Date foo in wrong format, must be ISO 8601"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -133,13 +133,13 @@ defmodule Pleroma.Web.RichMedia.ParserTest do
|
||||||
assert Parser.parse("http://example.com/oembed") ==
|
assert Parser.parse("http://example.com/oembed") ==
|
||||||
{:ok,
|
{:ok,
|
||||||
%{
|
%{
|
||||||
"author_name" => "bees",
|
"author_name" => "\u202E\u202D\u202Cbees\u202C",
|
||||||
"author_url" => "https://www.flickr.com/photos/bees/",
|
"author_url" => "https://www.flickr.com/photos/bees/",
|
||||||
"cache_age" => 3600,
|
"cache_age" => 3600,
|
||||||
"flickr_type" => "photo",
|
"flickr_type" => "photo",
|
||||||
"height" => "768",
|
"height" => "768",
|
||||||
"html" =>
|
"html" =>
|
||||||
"<a data-flickr-embed=\"true\" href=\"https://www.flickr.com/photos/bees/2362225867/\" title=\"Bacon Lollys by bees, on Flickr\"><img src=\"https://farm4.staticflickr.com/3040/2362225867_4a87ab8baf_b.jpg\" width=\"1024\" height=\"768\" alt=\"Bacon Lollys\"></a><script async src=\"https://embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></script>",
|
"<a data-flickr-embed=\"true\" href=\"https://www.flickr.com/photos/bees/2362225867/\" title=\"Bacon Lollys by \u202E\u202D\u202Cbees\u202C, on Flickr\"><img src=\"https://farm4.staticflickr.com/3040/2362225867_4a87ab8baf_b.jpg\" width=\"1024\" height=\"768\" alt=\"Bacon Lollys\"></a><script async src=\"https://embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></script>",
|
||||||
"license" => "All Rights Reserved",
|
"license" => "All Rights Reserved",
|
||||||
"license_id" => 0,
|
"license_id" => 0,
|
||||||
"provider_name" => "Flickr",
|
"provider_name" => "Flickr",
|
||||||
|
|
Loading…
Reference in a new issue