summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-08-13 20:20:26 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-08-13 20:20:26 +0300
commit0e1c481a94392b69833fbe6afc184ebbd90e1330 (patch)
tree20fcbee2c84e0959efe214c7e7b20790bf1c53dc /test/notification_test.exs
parent33a5fc4a70b6f9b8c2d8c03a412d7eec8d5b3db1 (diff)
downloadpleroma-0e1c481a94392b69833fbe6afc184ebbd90e1330.tar.gz
pleroma-0e1c481a94392b69833fbe6afc184ebbd90e1330.zip
[#1149] Added more oban workers. Refactoring.
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index 80ea2a085..e1c9f4f93 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
@@ -621,7 +622,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
@@ -666,6 +668,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