Fix flakey test.
authorRoger Braun <roger@rogerbraun.net>
Sun, 19 Nov 2017 12:07:29 +0000 (13:07 +0100)
committerRoger Braun <roger@rogerbraun.net>
Sun, 19 Nov 2017 12:07:29 +0000 (13:07 +0100)
test/web/twitter_api/twitter_api_controller_test.exs

index 6f56b84249b169267fde2badf28da7ee241ee6e3..4ab18721df461dadeb1636332f4a74b56820e3ed 100644 (file)
@@ -530,7 +530,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
       |> assign(:user, user)
       |> 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