Allow expires_at in filter requests
[akkoma] / test / pleroma / workers / scheduled_activity_worker_test.exs
index 5558d5b5f9a789d14e1cf0557b09952bfe62d243..9f5f1b687f63fc99803a28d5c2cfbc2916ee5f40 100644 (file)
@@ -49,4 +49,9 @@ defmodule Pleroma.Workers.ScheduledActivityWorkerTest do
              ScheduledActivityWorker.perform(%Oban.Job{args: %{"activity_id" => 42}})
            end) =~ "Couldn't find scheduled activity: 42"
   end
+
+  test "has a timeout" do
+    clear_config([:workers, :timeout, :scheduled_activities], :timer.minutes(5))
+    assert ScheduledActivityWorker.timeout(nil) == :timer.minutes(5)
+  end
 end