diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-01-15 08:04:54 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-01-15 08:04:54 +0000 |
commit | 5a6f54b336c8cca7f6514bb9ce7db5b6c97f296f (patch) | |
tree | 54c66b8ed5693c168a30902b6ea463a426399426 /test | |
parent | d49109ca17f980e118cd5ab97bc1139e3bd14402 (diff) | |
parent | 6e1cb86166d82a4ac4e5fb2ecf8955b18a7ab466 (diff) | |
download | pleroma-5a6f54b336c8cca7f6514bb9ce7db5b6c97f296f.tar.gz |
Merge branch 'stats-daemon' into 'develop'
Add a stats agent for storing data from expensive queries.
See merge request pleroma/pleroma!45
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 79ad671d9..93b29dfae 100644 --- 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 |