From: lain Date: Mon, 17 Dec 2018 19:55:24 +0000 (+0100) Subject: Fix uploads test. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=52bda3b456528e14bb9765660aa957d31f41e54c;p=akkoma Fix uploads test. --- diff --git a/test/tasks/uploads_test.exs b/test/tasks/uploads_test.exs index a76e96df5..93035abb6 100644 --- a/test/tasks/uploads_test.exs +++ b/test/tasks/uploads_test.exs @@ -30,7 +30,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