forked from mirrors/akkoma
Fix uploads test.
This commit is contained in:
parent
52ac7dce5c
commit
52bda3b456
|
@ -30,7 +30,12 @@ test "uploads migrated" do
|
||||||
|
|
||||||
assert_received {:mix_shell, :info, [message]}
|
assert_received {:mix_shell, :info, [message]}
|
||||||
|
|
||||||
assert %{"count" => ^total_count, "total_count" => ^total_count} =
|
# @logevery in Mix.Tasks.Pleroma.Uploads
|
||||||
|
count =
|
||||||
|
min(50, String.to_integer(total_count))
|
||||||
|
|> to_string()
|
||||||
|
|
||||||
|
assert %{"count" => ^count, "total_count" => ^total_count} =
|
||||||
Regex.named_captures(
|
Regex.named_captures(
|
||||||
~r"^Uploaded (?<count>\d+)/(?<total_count>\d+) files$",
|
~r"^Uploaded (?<count>\d+)/(?<total_count>\d+) files$",
|
||||||
message
|
message
|
||||||
|
|
Loading…
Reference in a new issue