Fix tests with enabled RUM
authorEgor Kislitsyn <egor@kislitsyn.com>
Fri, 31 May 2019 10:11:45 +0000 (17:11 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 5 Jun 2019 09:37:43 +0000 (16:37 +0700)
test/activity_test.exs

index 5260ebb9e1f4245cc9f23d2619cf78839972250a..1814e313df9ad201a78121447737a4fb8440e61d 100644 (file)
@@ -130,7 +130,9 @@ defmodule Pleroma.ActivityTest do
       remote_activity: remote_activity,
       user: user
     } do
-      assert [^remote_activity, ^local_activity] = Activity.search(user, "find me")
+      activities = Enum.sort_by(Activity.search(user, "find me"), & &1.id)
+
+      assert [^local_activity, ^remote_activity] = activities
     end
 
     test "find only local statuses for unauthenticated users", %{local_activity: local_activity} do