aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2018-01-14 08:28:35 +0200
committereal <eal@waifu.club>2018-01-14 08:28:35 +0200
commit6e1cb86166d82a4ac4e5fb2ecf8955b18a7ab466 (patch)
tree54c66b8ed5693c168a30902b6ea463a426399426
parentd8db39564eb21d9d9b572baae1886af8d0c047d5 (diff)
downloadpleroma-6e1cb86166d82a4ac4e5fb2ecf8955b18a7ab466.tar.gz
Fix instance test.
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs3
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