Browse Source

Fix a race condition in tests

object-id-column
Egor Kislitsyn 4 years ago
parent
commit
ca88e37a8f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/web/mastodon_api/mastodon_api_controller_test.exs

+ 1
- 1
test/web/mastodon_api/mastodon_api_controller_test.exs View File

@@ -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


Loading…
Cancel
Save