X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Fweb%2Fmastodon_api%2Fviews%2Fconversation_view_test.exs;h=9639e95d2baf0d33b4b9a7ac0416ba38ed41a067;hb=8829a408ecf3bfffaf59af415817220fd63a81b7;hp=81a471cb5a3cccd3f7b78d5b7cf602e0ad11ab9f;hpb=630eb0f939013db721c78e9b33e4e8bdc8232834;p=akkoma
diff --git a/test/pleroma/web/mastodon_api/views/conversation_view_test.exs b/test/pleroma/web/mastodon_api/views/conversation_view_test.exs
index 81a471cb5..9639e95d2 100644
--- a/test/pleroma/web/mastodon_api/views/conversation_view_test.exs
+++ b/test/pleroma/web/mastodon_api/views/conversation_view_test.exs
@@ -1,9 +1,9 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.ConversationViewTest do
- use Pleroma.DataCase
+ use Pleroma.DataCase, async: true
alias Pleroma.Conversation.Participation
alias Pleroma.Web.CommonAPI
@@ -36,11 +36,11 @@ defmodule Pleroma.Web.MastodonAPI.ConversationViewTest do
assert conversation.id == participation.id |> to_string()
assert conversation.last_status.id == activity.id
+ assert conversation.last_status.account.id == user.id
+
+ assert [account] = conversation.accounts
+ assert account.id == other_user.id
- account_ids = Enum.map(conversation.accounts, & &1.id)
- assert length(conversation.accounts) == 2
- assert user.id in account_ids
- assert other_user.id in account_ids
assert conversation.last_status.pleroma.direct_conversation_id == participation.id
end
end