Skip to content
GitLab
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
6e1cb861
Commit
6e1cb861
authored
Jan 14, 2018
by
eal
Browse files
Fix instance test.
parent
d8db3956
Pipeline
#473
passed with stage
in 2 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/web/mastodon_api/mastodon_api_controller_test.exs
View file @
6e1cb861
...
...
@@ -586,11 +586,14 @@ test "get instance information" do
{
:ok
,
_
}
=
TwitterAPI
.
create_status
(
user
,
%{
"status"
=>
"cofe"
})
Pleroma
.
Stats
.
update_stats
()
conn
=
conn
|>
get
(
"/api/v1/instance"
)
assert
result
=
json_response
(
conn
,
200
)
assert
result
[
"stats"
][
"user_count"
]
==
2
assert
result
[
"stats"
][
"status_count"
]
==
1
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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