diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-21 15:29:34 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-21 15:29:34 +0300 |
commit | fa936c68083810043b8c84fcbcad9fb3ce717eb6 (patch) | |
tree | d6d9ca7a6c49e93054568ff068996a1d0f668d80 /spec/models/ci/pipeline_spec.rb | |
parent | 900999f8180e49aa1677286e3e0cfa08d47829a7 (diff) |
External jobs do not have show page nor traces
Fixes #24677
Diffstat (limited to 'spec/models/ci/pipeline_spec.rb')
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index 71b7628ef10..ea5e0e28c5c 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -571,7 +571,13 @@ describe Ci::Pipeline, models: true do context 'with failed pipeline' do before do perform_enqueued_jobs do - pipeline.drop + create(:ci_build, :created, pipeline: pipeline) + create(:generic_commit_status, :created, pipeline: pipeline) + + pipeline.statuses.count.times do |offset| + # workaround race conditions + pipeline.statuses.offset(offset).first.drop + end end end |