Passing a user to retry_failed in tests
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7508#note_18794547
This commit is contained in:
parent
17388eb034
commit
3566965417
1 changed files with 3 additions and 3 deletions
|
@ -503,7 +503,7 @@ describe Ci::Pipeline, models: true do
|
|||
create(:ci_build, :failed, name: 'build', pipeline: pipeline)
|
||||
create(:generic_commit_status, :failed, name: 'jenkins', pipeline: pipeline)
|
||||
|
||||
pipeline.retry_failed(nil)
|
||||
pipeline.retry_failed(create(:user))
|
||||
end
|
||||
|
||||
it 'retries only build' do
|
||||
|
@ -516,7 +516,7 @@ describe Ci::Pipeline, models: true do
|
|||
create(:ci_build, :failed, name: 'build', stage_idx: 0, pipeline: pipeline)
|
||||
create(:ci_build, :failed, name: 'jenkins', stage_idx: 1, pipeline: pipeline)
|
||||
|
||||
pipeline.retry_failed(nil)
|
||||
pipeline.retry_failed(create(:user))
|
||||
end
|
||||
|
||||
it 'retries both builds' do
|
||||
|
@ -529,7 +529,7 @@ describe Ci::Pipeline, models: true do
|
|||
create(:ci_build, :failed, name: 'build', stage_idx: 0, pipeline: pipeline)
|
||||
create(:ci_build, :canceled, name: 'jenkins', stage_idx: 1, pipeline: pipeline)
|
||||
|
||||
pipeline.retry_failed(nil)
|
||||
pipeline.retry_failed(create(:user))
|
||||
end
|
||||
|
||||
it 'retries both builds' do
|
||||
|
|
Loading…
Reference in a new issue