diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-09-16 12:55:05 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-09-16 12:55:05 +0700 |
commit | ca88e37a8f3b0b52771f94df676e26471fb44019 (patch) | |
tree | 6a22783bec4d01c9d2a7624c14f7b064178cc38b | |
parent | 2990c0a53b14646eab19b57d068ac8aa7e17ea4e (diff) | |
download | pleroma-ca88e37a8f3b0b52771f94df676e26471fb44019.tar.gz pleroma-ca88e37a8f3b0b52771f94df676e26471fb44019.zip |
Fix a race condition in tests
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 9c5322ccb..fb04748bb 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -752,7 +752,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do query_string = "ids[]=#{id1}&ids[]=#{id2}" conn = get(conn, "/api/v1/statuses/?#{query_string}") - assert [%{"id" => ^id1}, %{"id" => ^id2}] = json_response(conn, :ok) + assert [%{"id" => ^id1}, %{"id" => ^id2}] = Enum.sort_by(json_response(conn, :ok), & &1["id"]) end describe "deleting a status" do |