Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
7d9254fb
Commit
7d9254fb
authored
Dec 17, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/tasks/uploads_test.exs
View file @
7d9254fb
...
...
@@ -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
}
=
Regex
.
named_captures
(
~r"^Uploaded (?<count>\d+)/(?<total_count>\d+) files$"
,
message
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment