X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Ftasks%2Fuploads_test.exs;h=b0b8eda11da3416e3db5eb48c0c93e11eaa35d0c;hb=4b791afd607723ee02c82718c04299dc9986831a;hp=a76e96df50d2038656a21bf09bd21f8de4634858;hpb=3d980daa49e51c7e3ec1f019e2b68c8108b37c76;p=akkoma
diff --git a/test/tasks/uploads_test.exs b/test/tasks/uploads_test.exs
index a76e96df5..b0b8eda11 100644
--- a/test/tasks/uploads_test.exs
+++ b/test/tasks/uploads_test.exs
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Mix.Tasks.Pleroma.UploadsTest do
alias Pleroma.Upload
use Pleroma.DataCase
@@ -30,7 +34,12 @@ defmodule Mix.Tasks.Pleroma.UploadsTest 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} =
Regex.named_captures(
~r"^Uploaded (?\d+)/(?\d+) files$",
message