mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-19 11:45:01 +00:00
We do not guarantee the order of elements when we search
This commit is contained in:
parent
2ec8cf5665
commit
bf30df99cb
1 changed files with 2 additions and 2 deletions
|
@ -901,8 +901,8 @@ defmodule Pleroma.UserTest 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
|
||||
|
|
Loading…
Reference in a new issue