From: Roger Braun Date: Sun, 19 Nov 2017 12:07:29 +0000 (+0100) Subject: Fix flakey test. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=40ca3793578fc505200a1c975cafce15a3b265c7;p=akkoma Fix flakey test. --- diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs index 6f56b8424..4ab18721d 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -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