Commit 1f298fc4 authored by Douwe Maan's avatar Douwe Maan

Merge branch '3965-fix-order-dependency-in-specs' into 'master'

Fix a spec to avoid writing to prometheus

Closes #3965

See merge request gitlab-org/gitlab-ee!3324
parents 4980f36e 543aed6f
......@@ -22,7 +22,9 @@ RSpec.describe Geo::MetricsUpdateWorker, :geo do
it 'executes when Prometheus metrics are enabled' do
allow(Gitlab::Metrics).to receive(:prometheus_metrics_enabled?).and_return(true)
expect(Geo::MetricsUpdateService).to receive(:new).and_call_original
service = double(:service, execute: true)
expect(Geo::MetricsUpdateService).to receive(:new).and_return(service)
subject.perform
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment