diff options
author | eal <eal@waifu.club> | 2017-12-11 21:01:36 +0200 |
---|---|---|
committer | eal <eal@waifu.club> | 2017-12-11 21:01:36 +0200 |
commit | 9223038319f0281f104fb9bb85c0cb8f6e52984a (patch) | |
tree | 1b5fe99106d8395f35eb56458b6ddaceb2b766e6 /test/web/mastodon_api | |
parent | 79b3397c17ec0ac53b2ec3e33a5bcd800397baae (diff) | |
download | pleroma-9223038319f0281f104fb9bb85c0cb8f6e52984a.tar.gz pleroma-9223038319f0281f104fb9bb85c0cb8f6e52984a.zip |
Fix some more tests.
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 93c0b7236..0d396f3b8 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -56,7 +56,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do test "contains mentions" do incoming = File.read!("test/fixtures/incoming_reply_mastodon.xml") - user = insert(:user, %{ap_id: "https://pleroma.soykaf.com/users/lain"}) + # a user with this ap id might be in the cache. + recipient = "https://pleroma.soykaf.com/users/lain" + user = User.get_cached_by_ap_id(recipient) || insert(:user, %{ap_id: recipient}) {:ok, [activity]} = OStatus.handle_incoming(incoming) |