diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 21:09:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 21:09:23 +0300 |
commit | 76e9fc7b29c1ce716c26932e9fbec0f3c99f53f4 (patch) | |
tree | b5ca8e3a6b2cf93b67257b38ee71e2efee177700 /spec/lib/feature_spec.rb | |
parent | a210c43e0aca0311cc1d3d381763b25979ec72dc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/feature_spec.rb')
-rw-r--r-- | spec/lib/feature_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/lib/feature_spec.rb b/spec/lib/feature_spec.rb index 2525dd17b89..cbe617359ef 100644 --- a/spec/lib/feature_spec.rb +++ b/spec/lib/feature_spec.rb @@ -146,7 +146,15 @@ describe Feature do expect(described_class.enabled?(:enabled_feature_flag)).to be_truthy end - it { expect(described_class.l1_cache_backend).to eq(Gitlab::ThreadMemoryCache.cache_backend) } + context 'with USE_THREAD_MEMORY_CACHE defined' do + before do + stub_env('USE_THREAD_MEMORY_CACHE', '1') + end + + it { expect(described_class.l1_cache_backend).to eq(Gitlab::ThreadMemoryCache.cache_backend) } + end + + it { expect(described_class.l1_cache_backend).to eq(Gitlab::ProcessMemoryCache.cache_backend) } it { expect(described_class.l2_cache_backend).to eq(Rails.cache) } it 'caches the status in L1 and L2 caches', |