summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-01-06 16:41:55 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2016-01-06 16:41:55 +0000
commitbcd2a09da72d430773b4b4bbc700132aade641d7 (patch)
treea5e89cbcd1a841e5fadaf778e828fc94862da68c /spec
parentfc386b65d090848322b70ca915d9140482a51494 (diff)
parent7549102bb727daecc51da84af39956b32fc41537 (diff)
downloadgitlab-ce-bcd2a09da72d430773b4b4bbc700132aade641d7.tar.gz
Merge branch 'metrics-milliseconds' into 'master'
See merge request !2316
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/metrics/subscribers/action_view_spec.rb4
-rw-r--r--spec/lib/gitlab/metrics/subscribers/active_record_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/metrics/subscribers/action_view_spec.rb b/spec/lib/gitlab/metrics/subscribers/action_view_spec.rb
index 05e4fbbeb51..0a4cc5e929b 100644
--- a/spec/lib/gitlab/metrics/subscribers/action_view_spec.rb
+++ b/spec/lib/gitlab/metrics/subscribers/action_view_spec.rb
@@ -21,7 +21,7 @@ describe Gitlab::Metrics::Subscribers::ActionView do
describe '#render_template' do
it 'tracks rendering of a template' do
- values = { duration: 2.1 }
+ values = { duration: 2100 }
tags = {
view: 'app/views/x.html.haml',
file: 'app/views/x.html.haml',
@@ -29,7 +29,7 @@ describe Gitlab::Metrics::Subscribers::ActionView do
}
expect(transaction).to receive(:increment).
- with(:view_duration, 2.1)
+ with(:view_duration, 2100)
expect(transaction).to receive(:add_metric).
with(described_class::SERIES, values, tags)
diff --git a/spec/lib/gitlab/metrics/subscribers/active_record_spec.rb b/spec/lib/gitlab/metrics/subscribers/active_record_spec.rb
index 7bc070a4d09..ca86142a2f4 100644
--- a/spec/lib/gitlab/metrics/subscribers/active_record_spec.rb
+++ b/spec/lib/gitlab/metrics/subscribers/active_record_spec.rb
@@ -26,7 +26,7 @@ describe Gitlab::Metrics::Subscribers::ActiveRecord do
and_return(transaction)
expect(transaction).to receive(:increment).
- with(:sql_duration, 0.2)
+ with(:sql_duration, 200)
subscriber.sql(event)
end