aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-09-16 07:36:57 +0000
committerkaniini <ariadne@dereferenced.org>2019-09-16 07:36:57 +0000
commit74eba5afe20124646366aace98c2e1b106712108 (patch)
tree6a22783bec4d01c9d2a7624c14f7b064178cc38b
parent2990c0a53b14646eab19b57d068ac8aa7e17ea4e (diff)
parentca88e37a8f3b0b52771f94df676e26471fb44019 (diff)
downloadpleroma-74eba5afe20124646366aace98c2e1b106712108.tar.gz
Merge branch 'fix/race-in-tests' into 'develop'
Fix a race condition in tests See merge request pleroma/pleroma!1673
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs2
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