summaryrefslogtreecommitdiff
path: root/spec/models/repository_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r--spec/models/repository_spec.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
index 845c906129f..19a45ce5f88 100644
--- a/spec/models/repository_spec.rb
+++ b/spec/models/repository_spec.rb
@@ -2450,15 +2450,6 @@ describe Repository do
2.times { repository.ancestor?(commit.id, ancestor.id) }
end
- it 'increments a counter with cache hits' do
- counter = Gitlab::Metrics.counter(:repository_ancestor_calls_total, 'Repository ancestor calls')
-
- expect do
- 2.times { repository.ancestor?(commit.id, ancestor.id) }
- end.to change { counter.get(cache_hit: 'true') }.by(1)
- .and change { counter.get(cache_hit: 'false') }.by(1)
- end
-
it 'returns the value from the request store' do
repository.__send__(:request_store_cache).write(cache_key, "it's apparent")