Commit 9b3085b4 authored by Sean McGivern's avatar Sean McGivern

Merge branch...

Merge branch '45571-red-master-issuedueschedulerworker-perform-schedules-one-mailscheduler-issuedueworker-per-project-with-open-issues-due-tomorrow' into 'master'

Resolve "Red master: IssueDueSchedulerWorker#perform schedules one MailScheduler::IssueDueWorker per project with open issues due tomorrow"

Closes #45571

See merge request gitlab-org/gitlab-ce!18499
parents 508ad87e 5051ca97
......@@ -14,7 +14,9 @@ describe IssueDueSchedulerWorker do
create(:issue, :closed, project: project_closed_issue, due_date: Date.tomorrow)
create(:issue, :opened, project: project_issue_due_another_day, due_date: Date.today)
expect(MailScheduler::IssueDueWorker).to receive(:bulk_perform_async).with([[project1.id], [project2.id]])
expect(MailScheduler::IssueDueWorker).to receive(:bulk_perform_async) do |args|
expect(args).to match_array([[project1.id], [project2.id]])
end
described_class.new.perform
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment