Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-21 15:29:34 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-11-21 15:29:34 +0300
commitfa936c68083810043b8c84fcbcad9fb3ce717eb6 (patch)
treed6d9ca7a6c49e93054568ff068996a1d0f668d80 /spec/models/ci
parent900999f8180e49aa1677286e3e0cfa08d47829a7 (diff)
External jobs do not have show page nor traces
Fixes #24677
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/pipeline_spec.rb8
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