From 52bda3b456528e14bb9765660aa957d31f41e54c Mon Sep 17 00:00:00 2001 From: lain Date: Mon, 17 Dec 2018 20:55:24 +0100 Subject: [PATCH] Fix uploads test. --- test/tasks/uploads_test.exs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.45.2