projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52ac7dc
)
Fix uploads test.
author
lain
<lain@soykaf.club>
Mon, 17 Dec 2018 19:55:24 +0000
(20:55 +0100)
committer
lain
<lain@soykaf.club>
Mon, 17 Dec 2018 19:55:24 +0000
(20:55 +0100)
test/tasks/uploads_test.exs
patch
|
blob
|
history
diff --git
a/test/tasks/uploads_test.exs
b/test/tasks/uploads_test.exs
index a76e96df50d2038656a21bf09bd21f8de4634858..93035abb6c1219e33ffac5c2c10fcdf365db9ae5 100644
(file)
--- 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 (?<count>\d+)/(?<total_count>\d+) files$",
message