Fix tests with enabled RUM

This commit is contained in:
Egor Kislitsyn 2019-05-31 17:11:45 +07:00
parent 94b9e9d844
commit 17a6f81f7b

View File

@ -130,7 +130,9 @@ defmodule Pleroma.ActivityTest do
remote_activity: remote_activity, remote_activity: remote_activity,
user: user user: user
} do } 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 end
test "find only local statuses for unauthenticated users", %{local_activity: local_activity} do test "find only local statuses for unauthenticated users", %{local_activity: local_activity} do