tests: update tests for totalItems leak fix
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 03:22:54 +0000 (03:22 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Feb 2019 03:22:54 +0000 (03:22 +0000)
test/web/activity_pub/activity_pub_controller_test.exs

index 570bee6b3dd57f56b3db4d8efa252d35e13a4925..9f6d87caac803c2ed67d7f8da858a8a3da16fc3a 100644 (file)
@@ -397,7 +397,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
         |> json_response(200)
 
       assert result["first"]["orderedItems"] == []
-      assert result["totalItems"] == 1
+      assert result["totalItems"] == 0
     end
 
     test "it works for more than 10 users", %{conn: conn} do
@@ -452,7 +452,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
         |> json_response(200)
 
       assert result["first"]["orderedItems"] == []
-      assert result["totalItems"] == 1
+      assert result["totalItems"] == 0
     end
 
     test "it works for more than 10 users", %{conn: conn} do