Merge branch 'fix_test' into 'develop'
authorlain <lain@soykaf.club>
Wed, 4 Dec 2019 13:25:12 +0000 (13:25 +0000)
committerlain <lain@soykaf.club>
Wed, 4 Dec 2019 13:25:12 +0000 (13:25 +0000)
[#1457] fix test

See merge request pleroma/pleroma!2035

test/web/mastodon_api/views/notification_view_test.exs

index 80b6d414cf178a5494b0fa209a6964ac0e502e3a..26e1afc857d5fc8f2ae5f68f65ba3f9cdc4f5920 100644 (file)
@@ -117,6 +117,9 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do
     Pleroma.Web.ActivityPub.ActivityPub.move(old_user, new_user)
     Pleroma.Tests.ObanHelpers.perform_all()
 
+    old_user = refresh_record(old_user)
+    new_user = refresh_record(new_user)
+
     [notification] = Notification.for_user(follower)
 
     expected = %{