diff options
Diffstat (limited to 'spec/lib/gitlab/repository_set_cache_spec.rb')
-rw-r--r-- | spec/lib/gitlab/repository_set_cache_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/lib/gitlab/repository_set_cache_spec.rb b/spec/lib/gitlab/repository_set_cache_spec.rb index 024aae49b04..07f4d7c462d 100644 --- a/spec/lib/gitlab/repository_set_cache_spec.rb +++ b/spec/lib/gitlab/repository_set_cache_spec.rb @@ -93,23 +93,6 @@ RSpec.describe Gitlab::RepositorySetCache, :clean_gitlab_redis_cache do it { is_expected.to eq(0) } end - - context "unlink isn't supported" do - before do - allow_any_instance_of(Redis).to receive(:unlink) { raise ::Redis::CommandError } - end - - it 'still deletes the given key' do - expect(cache.expire(:foo)).to eq(1) - expect(cache.read(:foo)).to be_empty - end - - it 'logs the failure' do - expect(Gitlab::ErrorTracking).to receive(:log_exception) - - cache.expire(:foo) - end - end end describe '#exist?' do |