Fix flakey test.
This commit is contained in:
parent
c336a13d2c
commit
40ca379357
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue