From: Egor Kislitsyn Date: Fri, 31 May 2019 10:11:45 +0000 (+0700) Subject: Fix tests with enabled RUM X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=17a6f81f7b2ecd42ea003dc5d81258d6bd04bfa5;p=akkoma Fix tests with enabled RUM --- diff --git a/test/activity_test.exs b/test/activity_test.exs index 5260ebb9e..1814e313d 100644 --- a/test/activity_test.exs +++ b/test/activity_test.exs @@ -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