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:
authorKamil Trzciński <ayufan@ayufan.eu>2017-04-07 20:19:21 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2017-04-07 20:19:21 +0300
commit8631779b1a012bdb5bd9d8de18d6faff49a5821b (patch)
tree8fd4574204819265368009d4553c82d4b0a7215a /spec/services
parent46aadc5c16150446840a26ea7199380830369326 (diff)
parent9eded57dd2b4d23e43b485c448abb92359e6933e (diff)
Merge branch 'bvl-fix-project-ci-status-cache' into 'master'
Fix invalidating Project build status cache to often See merge request !10313
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/ci/expire_pipeline_cache_service_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/services/ci/expire_pipeline_cache_service_spec.rb b/spec/services/ci/expire_pipeline_cache_service_spec.rb
index 3c735872c30..166c6dfc93e 100644
--- a/spec/services/ci/expire_pipeline_cache_service_spec.rb
+++ b/spec/services/ci/expire_pipeline_cache_service_spec.rb
@@ -16,5 +16,12 @@ describe Ci::ExpirePipelineCacheService, services: true do
subject.execute(pipeline)
end
+
+ it 'updates the cached status for a project' do
+ expect(Gitlab::Cache::Ci::ProjectPipelineStatus).to receive(:update_for_pipeline).
+ with(pipeline)
+
+ subject.execute(pipeline)
+ end
end
end