diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-07 04:24:30 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-07 04:24:30 +0200 |
commit | 1c59ba67a539e9ef7298b1c219123200eeb54b01 (patch) | |
tree | b2a21142529e37e1c66df873fd49cf95b69f1aeb /spec/controllers | |
parent | 4679107fdce6d88733c82329495b667d1a032217 (diff) | |
download | gitlab-ce-1c59ba67a539e9ef7298b1c219123200eeb54b01.tar.gz |
Do not cleanup temp directory as this apparently causes silent rspec failures on linux in CI
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/metrics_controller_spec.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/controllers/metrics_controller_spec.rb b/spec/controllers/metrics_controller_spec.rb index b26ebc1377b..044c9f179ed 100644 --- a/spec/controllers/metrics_controller_spec.rb +++ b/spec/controllers/metrics_controller_spec.rb @@ -5,17 +5,11 @@ describe MetricsController do let(:token) { current_application_settings.health_check_access_token } let(:json_response) { JSON.parse(response.body) } - - around do |example| - Dir.mktmpdir do |tmp_dir| - @metrics_multiproc_dir = tmp_dir - example.run - end - end + let(:metrics_multiproc_dir) { Dir.mktmpdir } before do stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false') - stub_env('prometheus_multiproc_dir', @metrics_multiproc_dir) + stub_env('prometheus_multiproc_dir', metrics_multiproc_dir) allow(Gitlab::Metrics).to receive(:prometheus_metrics_enabled?).and_return(true) end |