Fix flakey test.

This commit is contained in:
Roger Braun 2017-11-19 13:07:29 +01:00
parent c336a13d2c
commit 40ca379357
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ test "it returns a user's friends", %{conn: conn} do
|> assign(:user, user) |> assign(:user, user)
|> get("/api/statuses/friends") |> get("/api/statuses/friends")
assert json_response(conn, 200) == UserView.render("index.json", %{users: [followed_one, followed_two], for: user}) assert MapSet.equal?(MapSet.new(json_response(conn, 200)), MapSet.new(UserView.render("index.json", %{users: [followed_one, followed_two], for: user})))
end end
end end