projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#1149] Merge remote-tracking branch 'remotes/upstream/develop' into 1149-oban-job...
[akkoma]
/
test
/
notification_test.exs
diff --git
a/test/notification_test.exs
b/test/notification_test.exs
index 2a52dad8d87f9a344d74a8a89c5e234cee5c6b73..3be9db09b38074e3bd2868c6eea32a559dbe8e9c 100644
(file)
--- a/
test/notification_test.exs
+++ b/
test/notification_test.exs
@@
-8,6
+8,7
@@
defmodule Pleroma.NotificationTest do
import Pleroma.Factory
alias Pleroma.Notification
import Pleroma.Factory
alias Pleroma.Notification
+ alias Pleroma.Tests.ObanHelpers
alias Pleroma.User
alias Pleroma.Web.ActivityPub.Transmogrifier
alias Pleroma.Web.CommonAPI
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))
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
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)
}
{:ok, _delete_activity} = Transmogrifier.handle_incoming(delete_user_message)
+ ObanHelpers.perform_all()
assert Enum.empty?(Notification.for_user(local_user))
end
assert Enum.empty?(Notification.for_user(local_user))
end