Fix instance test.
authoreal <eal@waifu.club>
Sun, 14 Jan 2018 06:28:35 +0000 (08:28 +0200)
committereal <eal@waifu.club>
Sun, 14 Jan 2018 06:28:35 +0000 (08:28 +0200)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 79ad671d9bf158f466ecb516f4493840aa3db34a..93b29dfaef8631567e4364f85f5b80a35e11b054 100644 (file)
@@ -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