summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-09-15 20:22:17 +0000
committerrinpatch <rinpatch@sdf.org>2019-09-15 20:22:17 +0000
commit2990c0a53b14646eab19b57d068ac8aa7e17ea4e (patch)
tree7681ac3405657948a062c396b70bb2f275e91238 /test/notification_test.exs
parent9c64a25713790fefa8b5c419aeadf55113c17073 (diff)
parent3b8ec98b0e3b3fb2bd333f3be724676c4821366f (diff)
downloadpleroma-2990c0a53b14646eab19b57d068ac8aa7e17ea4e.tar.gz
pleroma-2990c0a53b14646eab19b57d068ac8aa7e17ea4e.zip
Merge branch '1149-oban-job-queue' into 'develop'
[#1149] `oban`-based job & retry queues Closes #1149 See merge request pleroma/pleroma!1518
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 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