diff options
author | rinpatch <rinpatch@sdf.org> | 2019-09-14 18:14:54 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-09-14 18:14:54 +0000 |
commit | 6c3f5e8ba0b164ef50e0c7bf0fe36223f821b680 (patch) | |
tree | 8f722d63536585b3192b63cf6bf843ccf8b21f6c | |
parent | e71d662d3a7d8166ca2ccc32b36ea7ba666dcf19 (diff) | |
parent | c64ab84e6a4aef18d4d38d11d445777be09f8e00 (diff) | |
download | pleroma-6c3f5e8ba0b164ef50e0c7bf0fe36223f821b680.tar.gz |
Merge branch 'cherry-pick-3ae448b5' into 'maint/1.1'
Backport a test fix to 1.1
See merge request pleroma/pleroma!1671
-rw-r--r-- | test/activity_test.exs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/activity_test.exs b/test/activity_test.exs index f9f789a76..275cab81e 100644 --- a/test/activity_test.exs +++ b/test/activity_test.exs @@ -213,7 +213,11 @@ defmodule Pleroma.ActivityTest do assert [] == Activity.all_by_actor_and_id(user, []) - assert [%Activity{id: ^id2}, %Activity{id: ^id1}] = - Activity.all_by_actor_and_id(user.ap_id, [id1, id2]) + activities = + user.ap_id + |> Activity.all_by_actor_and_id([id1, id2]) + |> Enum.sort(&(&1.id < &2.id)) + + assert [%Activity{id: ^id1}, %Activity{id: ^id2}] = activities end end |