Test failure /spec/workers/merge_requests/handle_assignees_change_worker_spec.rb:21 # MergeRequests::HandleAssigneesChangeWorker#perform calls MergeRequests::HandleAssigneesChangeService#execute to handle the changes
This failure happened on foss:
Failures:
1) MergeRequests::HandleAssigneesChangeWorker#perform calls MergeRequests::HandleAssigneesChangeService#execute to handle the changes
Failure/Error:
::MergeRequests::HandleAssigneesChangeService
.new(merge_request.target_project, user)
.execute(merge_request, old_assignees, options)
#<MergeRequests::HandleAssigneesChangeService> received :execute with unexpected arguments
expected: (#<MergeRequest id:139 namespace1036/project1049!1>, [#<User id:1725 @user1833>, #<User id:1726 @user1834>, #<User id:1727 @user1835>], {})
got: (#<MergeRequest id:139 namespace1036/project1049!1>, #<ActiveRecord::Relation [#<User id:1727 @user1835>, #<User id:1725 @user1833>, #<User id:1726 @user1834>]>, {})
Diff:
@@ -1,6 +1,4 @@
[#<MergeRequest id:139 namespace1036/project1049!1>,
- [#<User id:1725 @user1833>,
- #<User id:1726 @user1834>,
- #<User id:1727 @user1835>],
+ #<ActiveRecord::Relation [#<User id:1727 @user1835>, #<User id:1725 @user1833>, #<User id:1726 @user1834>]>,
{}]
# ./app/workers/merge_requests/handle_assignees_change_worker.rb:19:in `perform'
# ./spec/workers/merge_requests/handle_assignees_change_worker_spec.rb:25:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:360:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:351:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:347:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:347:in `block (2 levels) in <top (required)>'
Finished in 18 minutes 28 seconds (files took 31.75 seconds to load)