projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4264c4b
)
Fix `Activity.all_by_actor_and_id/2` test
author
Egor Kislitsyn
<egor@kislitsyn.com>
Sat, 14 Sep 2019 12:31:20 +0000
(19:31 +0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Sat, 14 Sep 2019 12:31:20 +0000
(19:31 +0700)
test/activity_test.exs
patch
|
blob
|
history
diff --git
a/test/activity_test.exs
b/test/activity_test.exs
index f9f789a7680da7aa0921fdbc6430054465c734d1..275cab81e6123a839ed044e5a5cc2642f2360040 100644
(file)
--- 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