From 32ae9188430349e22721b81baec825b3cebfe8e5 Mon Sep 17 00:00:00 2001 From: lain Date: Thu, 22 Mar 2018 12:44:32 +0100 Subject: Clear caches on test. --- test/web/mastodon_api/status_view_test.exs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/web') diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 9e2bc3c18..a58f729a6 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -58,10 +58,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do incoming = File.read!("test/fixtures/incoming_reply_mastodon.xml") # 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}) - - # invalidate the cache - User.invalidate_cache(user) + user = insert(:user, %{ap_id: recipient}) {:ok, [activity]} = OStatus.handle_incoming(incoming) -- cgit v1.2.3