fix test
authorMaksim Pechnikov <parallel588@gmail.com>
Wed, 4 Dec 2019 13:22:01 +0000 (16:22 +0300)
committerMaksim Pechnikov <parallel588@gmail.com>
Wed, 4 Dec 2019 13:22:01 +0000 (16:22 +0300)
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 = %{