before -> after
This commit is contained in:
parent
f51147834e
commit
7772dfb788
|
@ -5,7 +5,7 @@ describe Gitlab::Metrics::MethodCall do
|
|||
let(:method_call) { described_class.new('Foo#bar', :Foo, '#bar', transaction) }
|
||||
|
||||
describe '#measure' do
|
||||
before do
|
||||
after do
|
||||
described_class.reload_metric!(:gitlab_method_call_duration_seconds)
|
||||
end
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ describe Gitlab::Metrics do
|
|||
|
||||
context 'prometheus metrics enabled in config' do
|
||||
before do
|
||||
allow(described_class).to receive(:current_application_settings).and_return(prometheus_metrics_enabled: true)
|
||||
allow(Gitlab::CurrentSettings).to receive(:current_application_settings).and_return(prometheus_metrics_enabled: true)
|
||||
end
|
||||
|
||||
context 'when metrics folder is present' do
|
||||
|
|
Loading…
Reference in New Issue