projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94b9e9d
)
Fix tests with enabled RUM
author
Egor Kislitsyn
<egor@kislitsyn.com>
Fri, 31 May 2019 10:11:45 +0000
(17:11 +0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 5 Jun 2019 09:37:43 +0000
(16:37 +0700)
test/activity_test.exs
patch
|
blob
|
history
diff --git
a/test/activity_test.exs
b/test/activity_test.exs
index 5260ebb9e1f4245cc9f23d2619cf78839972250a..1814e313df9ad201a78121447737a4fb8440e61d 100644
(file)
--- a/
test/activity_test.exs
+++ b/
test/activity_test.exs
@@
-130,7
+130,9
@@
defmodule Pleroma.ActivityTest do
remote_activity: remote_activity,
user: user
} 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
test "find only local statuses for unauthenticated users", %{local_activity: local_activity} do