Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/metrics_controller_spec.rb')
-rw-r--r--spec/controllers/metrics_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/metrics_controller_spec.rb b/spec/controllers/metrics_controller_spec.rb
index 9fa90dde997..6fffa607bf8 100644
--- a/spec/controllers/metrics_controller_spec.rb
+++ b/spec/controllers/metrics_controller_spec.rb
@@ -94,8 +94,8 @@ RSpec.describe MetricsController, :request_store do
end
it 'renders system stats JSON' do
- expect(Prometheus::PidProvider).to receive(:worker_id).and_return('worker-0')
- expect(Gitlab::Metrics::System).to receive(:summary).and_return(summary)
+ allow(Prometheus::PidProvider).to receive(:worker_id).and_return('worker-0')
+ allow(Gitlab::Metrics::System).to receive(:summary).and_return(summary)
get :system