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/chaos_controller_spec.rb')
-rw-r--r--spec/controllers/chaos_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/chaos_controller_spec.rb b/spec/controllers/chaos_controller_spec.rb
index 26ae4a6b693..36ccf868d82 100644
--- a/spec/controllers/chaos_controller_spec.rb
+++ b/spec/controllers/chaos_controller_spec.rb
@@ -147,8 +147,8 @@ RSpec.describe ChaosController do
let(:gc_stat) { GC.stat.stringify_keys }
it 'runs a full GC on the current web worker' do
- expect(Prometheus::PidProvider).to receive(:worker_id).and_return('worker-0')
- expect(Gitlab::Chaos).to receive(:run_gc).and_return(gc_stat)
+ allow(Prometheus::PidProvider).to receive(:worker_id).and_return('worker-0')
+ allow(Gitlab::Chaos).to receive(:run_gc).and_return(gc_stat)
post :gc