Commit 8ad7cbf7 authored by Ryan Cobb's avatar Ryan Cobb

Cleanup spec by removing not needed let

parent 17986d91
......@@ -79,12 +79,11 @@ describe Gitlab::Metrics::Samplers::UnicornSampler do
end
context 'additional metrics' do
let(:cpu_time) { 3.14 }
let(:unicorn_workers) { 2 }
before do
allow(unicorn).to receive(:listener_names).and_return([""])
allow(::Gitlab::Metrics::System).to receive(:cpu_time).and_return(cpu_time)
allow(::Gitlab::Metrics::System).to receive(:cpu_time).and_return(3.14)
allow(subject).to receive(:unicorn_workers_count).and_return(unicorn_workers)
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