projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8db395
)
Fix instance test.
author
eal
<eal@waifu.club>
Sun, 14 Jan 2018 06:28:35 +0000
(08:28 +0200)
committer
eal
<eal@waifu.club>
Sun, 14 Jan 2018 06:28:35 +0000
(08:28 +0200)
test/web/mastodon_api/mastodon_api_controller_test.exs
patch
|
blob
|
history
diff --git
a/test/web/mastodon_api/mastodon_api_controller_test.exs
b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 79ad671d9bf158f466ecb516f4493840aa3db34a..93b29dfaef8631567e4364f85f5b80a35e11b054 100644
(file)
--- a/
test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/
test/web/mastodon_api/mastodon_api_controller_test.exs
@@
-586,11
+586,14
@@
defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest 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