diff --git a/config/test.exs b/config/test.exs index 5958f99ef..666a0fb87 100644 --- a/config/test.exs +++ b/config/test.exs @@ -81,8 +81,7 @@ "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4", private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA" -config :pleroma, Oban, - testing: :manual +config :pleroma, Oban, testing: :manual config :pleroma, Pleroma.ScheduledActivity, daily_user_limit: 2, diff --git a/test/pleroma/web/activity_pub/side_effects_test.exs b/test/pleroma/web/activity_pub/side_effects_test.exs index fec68bc68..267e89b76 100644 --- a/test/pleroma/web/activity_pub/side_effects_test.exs +++ b/test/pleroma/web/activity_pub/side_effects_test.exs @@ -513,6 +513,7 @@ test "enqueues the poll end", %{activity: activity, meta: meta} do {:ok, activity, meta} = SideEffects.handle(activity, meta) {:ok, time, _} = DateTime.from_iso8601(meta[:object_data]["closed"]) + assert_enqueued( worker: Pleroma.Workers.PollWorker, args: %{op: "poll_end", activity_id: activity.id}, diff --git a/test/pleroma/web/common_api_test.exs b/test/pleroma/web/common_api_test.exs index cc2f92758..78f9fd339 100644 --- a/test/pleroma/web/common_api_test.exs +++ b/test/pleroma/web/common_api_test.exs @@ -51,6 +51,7 @@ test "it posts a poll" do assert object.data["oneOf"] |> length() == 2 {:ok, time, _} = DateTime.from_iso8601(object.data["closed"]) + assert_enqueued( worker: PollWorker, args: %{op: "poll_end", activity_id: activity.id},