ConversationViewTest: fix test
authorAlibek Omarov <a1ba.omarov@gmail.com>
Fri, 30 Oct 2020 12:37:15 +0000 (13:37 +0100)
committerGitea <gitea@fake.local>
Fri, 30 Oct 2020 12:59:53 +0000 (13:59 +0100)
test/pleroma/web/mastodon_api/views/conversation_view_test.exs

index 81a471cb5a3cccd3f7b78d5b7cf602e0ad11ab9f..cd02158f9c63bb18e5d965c1f0143bf0f8815b55 100644 (file)
@@ -36,10 +36,10 @@ 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
 
     account_ids = Enum.map(conversation.accounts, & &1.id)
-    assert length(conversation.accounts) == 2
-    assert user.id in account_ids
+    assert length(conversation.accounts) == 1
     assert other_user.id in account_ids
     assert conversation.last_status.pleroma.direct_conversation_id == participation.id
   end