projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '1149-oban-job-queue' into 'develop'
[akkoma]
/
test
/
activity_test.exs
diff --git
a/test/activity_test.exs
b/test/activity_test.exs
index 275cab81e6123a839ed044e5a5cc2642f2360040..6512d84ac64b22ccdced6818c23756a89ffbda52 100644
(file)
--- a/
test/activity_test.exs
+++ b/
test/activity_test.exs
@@
-7,6
+7,7
@@
defmodule Pleroma.ActivityTest do
alias Pleroma.Activity
alias Pleroma.Bookmark
alias Pleroma.Object
alias Pleroma.Activity
alias Pleroma.Bookmark
alias Pleroma.Object
+ alias Pleroma.Tests.ObanHelpers
alias Pleroma.ThreadMute
import Pleroma.Factory
alias Pleroma.ThreadMute
import Pleroma.Factory
@@
-125,7
+126,8
@@
defmodule Pleroma.ActivityTest do
}
{:ok, local_activity} = Pleroma.Web.CommonAPI.post(user, %{"status" => "find me!"})
}
{:ok, local_activity} = Pleroma.Web.CommonAPI.post(user, %{"status" => "find me!"})
- {:ok, remote_activity} = Pleroma.Web.Federator.incoming_ap_doc(params)
+ {:ok, job} = Pleroma.Web.Federator.incoming_ap_doc(params)
+ {:ok, remote_activity} = ObanHelpers.perform(job)
%{local_activity: local_activity, remote_activity: remote_activity, user: user}
end
%{local_activity: local_activity, remote_activity: remote_activity, user: user}
end