diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-16 07:34:22 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-16 07:34:22 +0300 |
commit | d75bc728e7e309174373e234079aa4825c81ab3e (patch) | |
tree | 1ac6b44f5758ff028103c37d3712520f45a0695e /test/notification_test.exs | |
parent | 4f548cb2b7b4a16a956a4f4a0ff64d279777925e (diff) | |
parent | 2990c0a53b14646eab19b57d068ac8aa7e17ea4e (diff) | |
download | pleroma-d75bc728e7e309174373e234079aa4825c81ab3e.tar.gz pleroma-d75bc728e7e309174373e234079aa4825c81ab3e.zip |
Merge branch 'develop' into issue/733
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index 2a52dad8d..3be9db09b 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -8,6 +8,7 @@ defmodule Pleroma.NotificationTest do import Pleroma.Factory alias Pleroma.Notification + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.ActivityPub.Transmogrifier alias Pleroma.Web.CommonAPI @@ -588,7 +589,8 @@ defmodule Pleroma.NotificationTest do refute Enum.empty?(Notification.for_user(other_user)) - User.delete(user) + {:ok, job} = User.delete(user) + ObanHelpers.perform(job) assert Enum.empty?(Notification.for_user(other_user)) end @@ -633,6 +635,7 @@ defmodule Pleroma.NotificationTest do } {:ok, _delete_activity} = Transmogrifier.handle_incoming(delete_user_message) + ObanHelpers.perform_all() assert Enum.empty?(Notification.for_user(local_user)) end |