Skip to content
Snippets Groups Projects
Commit d20c0682 authored by Lin Jen-Shin's avatar Lin Jen-Shin 🍪
Browse files

Just create failed builds rather than calling events

parent da972617
No related branches found
No related tags found
1 merge request!912CE upstream
......@@ -571,13 +571,10 @@ def create_build(name, stage_idx)
context 'with failed pipeline' do
before do
perform_enqueued_jobs do
create(:ci_build, :created, pipeline: pipeline)
create(:generic_commit_status, :created, pipeline: pipeline)
create(:ci_build, :failed, pipeline: pipeline)
create(:generic_commit_status, :failed, pipeline: pipeline)
pipeline.statuses.count.times do |offset|
# workaround race conditions
pipeline.statuses.offset(offset).first.drop
end
pipeline.drop
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment