diff options
Diffstat (limited to 'spec/lib/gitlab/rugged_instrumentation_spec.rb')
-rw-r--r-- | spec/lib/gitlab/rugged_instrumentation_spec.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/spec/lib/gitlab/rugged_instrumentation_spec.rb b/spec/lib/gitlab/rugged_instrumentation_spec.rb deleted file mode 100644 index 393bb957aba..00000000000 --- a/spec/lib/gitlab/rugged_instrumentation_spec.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe Gitlab::RuggedInstrumentation, :request_store do - subject { described_class } - - describe '.query_time' do - it 'increments query times' do - subject.add_query_time(0.4510004) - subject.add_query_time(0.3220004) - - expect(subject.query_time).to eq(0.773001) - expect(subject.query_time_ms).to eq(773.0) - end - end - - describe '.increment_query_count' do - it 'tracks query counts' do - expect(subject.query_count).to eq(0) - - 2.times { subject.increment_query_count } - - expect(subject.query_count).to eq(2) - end - end -end |