Schedule a final poll refresh before streaming out the notifications

This commit is contained in:
Mark Felder 2024-09-30 14:17:35 -04:00
commit 47ce3a4a96
2 changed files with 12 additions and 2 deletions

View file

@ -44,6 +44,12 @@ defmodule Pleroma.Workers.PollWorkerTest do
# Ensure notifications were streamed out when job executes
assert called(Pleroma.Web.Streamer.stream(["user", "user:notification"], :_))
assert called(Pleroma.Web.Push.send(:_))
# Ensure we scheduled a final refresh of the poll
assert_enqueued(
worker: PollWorker,
args: %{"op" => "refresh", "activity_id" => activity.id}
)
end
end
end