diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-04-09 15:41:55 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-04-10 15:57:00 +0300 |
commit | 4b30aec0aa9e52d3d7d4394f05a725d14e0c0db3 (patch) | |
tree | 7fc3713103151a70d08404fa0b48a49b25dfa026 /spec/lib/gitlab/cache | |
parent | de36ca81d35992c265cd4fd09c774cb793dbd246 (diff) |
Allow `rake cache:clear` clearing pipeline status cache
* Use the correct key prefix
* Clear old cache keys
TODO:
At some point we could remove clearing old cache keys.
Diffstat (limited to 'spec/lib/gitlab/cache')
-rw-r--r-- | spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb b/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb index 16704ff5e77..18658588a40 100644 --- a/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb +++ b/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Gitlab::Cache::Ci::ProjectPipelineStatus, :clean_gitlab_redis_cache do let!(:project) { create(:project, :repository) } let(:pipeline_status) { described_class.new(project) } - let(:cache_key) { "projects/#{project.id}/pipeline_status" } + let(:cache_key) { described_class.cache_key_for_project(project) } describe '.load_for_project' do it "loads the status" do |