Commit 7d9254fb authored by lain's avatar lain
Browse files

Merge branch 'fix-test' into 'develop'

Fix uploads test.

See merge request !564
parents 3d980daa 52bda3b4
Pipeline #5497 passed with stages
in 3 minutes and 9 seconds
......@@ -30,7 +30,12 @@ test "uploads migrated" do
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} =
~r"^Uploaded (?<count>\d+)/(?<total_count>\d+) files$",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment