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!7617External jobs do not have show page nor traces
Loading
Loading
@@ -571,13 +571,10 @@ describe Ci::Pipeline, models: true do
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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment