Commit 543aed6f authored by Nick Thomas's avatar Nick Thomas

Fix a spec to avoid writing to prometheus

parent 4980f36e
......@@ -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