diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2019-09-14 18:29:51 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2019-09-14 18:29:51 +0300 |
commit | d7457c9165b83c0f1514cf0532b5a8bdc515ea02 (patch) | |
tree | 65209338d595c55397f85ad2295bc48b778b820e /test/activity_test.exs | |
parent | 0bd2b85edbf3b7062570778649cf2b77cc7a0bce (diff) | |
parent | 3ae448b592214b43af1d079c997c6f6b91d31aeb (diff) | |
download | pleroma-d7457c9165b83c0f1514cf0532b5a8bdc515ea02.tar.gz |
Merge branch 'develop' into refactor/subscription
Diffstat (limited to 'test/activity_test.exs')
-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 |