summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-19 14:34:40 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-19 14:34:40 +0200
commitd147ebf3f8d5493bf9ddff6fee7e4cf86af324bf (patch)
tree73c8f62fba9fd68346a25d4dcb032fb2e7de162d
parentb18afa835b60de59201564219583095d48d31aaf (diff)
downloadgitlab-ce-d147ebf3f8d5493bf9ddff6fee7e4cf86af324bf.tar.gz
Fix test for processing pipeline after retrying build
-rw-r--r--spec/services/ci/process_pipeline_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/ci/process_pipeline_service_spec.rb b/spec/services/ci/process_pipeline_service_spec.rb
index 6529acbac2c..8326e5cd313 100644
--- a/spec/services/ci/process_pipeline_service_spec.rb
+++ b/spec/services/ci/process_pipeline_service_spec.rb
@@ -256,7 +256,7 @@ describe Ci::ProcessPipelineService, services: true do
expect(builds.pluck(:name))
.to contain_exactly('build:1', 'build:2', 'test:1', 'test:2')
- Ci::Build.retry(pipeline.builds.find_by(name: 'test:2'))
+ Ci::Build.retry(pipeline.builds.find_by(name: 'test:2')).success
expect(builds.pluck(:name)).to contain_exactly(
'build:1', 'build:2', 'test:1', 'test:2', 'test:2', 'deploy:1', 'deploy:2')