projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b76c7
)
Fix `Activity.all_by_ids_with_object/1` test
author
Egor Kislitsyn
<egor@kislitsyn.com>
Tue, 10 Sep 2019 18:08:37 +0000
(
01:08
+0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Tue, 10 Sep 2019 18:08:37 +0000
(
01:08
+0700)
test/activity_test.exs
patch
|
blob
|
history
diff --git
a/test/activity_test.exs
b/test/activity_test.exs
index 49654bd67f157497d433aba609532ab87fc9e6a2..4152aaa7e46fc2543cf57082bb7d9b4c7de6770a 100644
(file)
--- a/
test/activity_test.exs
+++ b/
test/activity_test.exs
@@
-178,7
+178,11
@@
defmodule Pleroma.ActivityTest do
%{id: id1} = insert(:note_activity)
%{id: id2} = insert(:note_activity)
- assert [%{id: ^id1, object: %Object{}}, %{id: ^id2, object: %Object{}}] =
- Activity.all_by_ids_with_object([id1, id2])
+ activities =
+ [id1, id2]
+ |> Activity.all_by_ids_with_object()
+ |> Enum.sort(&(&1.id < &2.id))
+
+ assert [%{id: ^id1, object: %Object{}}, %{id: ^id2, object: %Object{}}] = activities
end
end