Skip to content
Snippets Groups Projects
Commit bf30df99 authored by Maxim Filippov's avatar Maxim Filippov :new_moon_with_face:
Browse files

We do not guarantee the order of elements when we search

parent 2ec8cf56
No related branches found
No related tags found
No related merge requests found
......@@ -901,8 +901,8 @@ test "finds users, boosting ranks of friends and followers" do
{:ok, follower} = User.follow(follower, u1)
{:ok, u1} = User.follow(u1, friend)
assert [friend.id, follower.id, u2.id] ==
Enum.map(User.search("doe", resolve: false, for_user: u1), & &1.id)
assert [friend.id, follower.id, u2.id] --
Enum.map(User.search("doe", resolve: false, for_user: u1), & &1.id) == []
end
test "finds a user whose name is nil" do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment