summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorAleksei Lipniagov <alipniagov@gitlab.com>2019-08-13 18:29:05 +0300
committerAleksei Lipniagov <alipniagov@gitlab.com>2019-08-14 17:46:40 +0300
commit6fc7033725f15c4e0d289b4f3cfa4a298fc46867 (patch)
tree90336240b397d780a11fdf25533fc610882aaf3f /spec/lib
parent03c8bb125573d3910689d10b979a6aa59b680ff6 (diff)
downloadgitlab-ce-6fc7033725f15c4e0d289b4f3cfa4a298fc46867.tar.gz
Remove :puma_phase metrics65278-livesum-puma-phase
We don't use phase restarts, as we use `preload_app`: https://github.com/puma/puma/blob/master/README.md#clustered-mode `:puma_phase` values will always be zero.
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/metrics/samplers/puma_sampler_spec.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/lib/gitlab/metrics/samplers/puma_sampler_spec.rb b/spec/lib/gitlab/metrics/samplers/puma_sampler_spec.rb
index f4a6e1fc7d9..b8add3c1324 100644
--- a/spec/lib/gitlab/metrics/samplers/puma_sampler_spec.rb
+++ b/spec/lib/gitlab/metrics/samplers/puma_sampler_spec.rb
@@ -46,8 +46,6 @@ describe Gitlab::Metrics::Samplers::PumaSampler do
expect(subject.metrics[:puma_workers]).to receive(:set).with(labels, 2)
expect(subject.metrics[:puma_running_workers]).to receive(:set).with(labels, 2)
expect(subject.metrics[:puma_stale_workers]).to receive(:set).with(labels, 0)
- expect(subject.metrics[:puma_phase]).to receive(:set).once.with(labels, 2)
- expect(subject.metrics[:puma_phase]).to receive(:set).once.with({ worker: 'worker_0' }, 1)
subject.sample
end