Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-07-25 15:19:09 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-07-25 15:19:09 +0300
commit2286879583580861109207c05aa4fae1729a02b6 (patch)
tree6f7f862584c265866efb40afc3fd9c1458eff7d5 /spec/lib/gitlab/health_checks
parentd95e6da0d582cd4b0d333b3b6a1bfa3a565b874e (diff)
Ensure test files are deleted after tests
Diffstat (limited to 'spec/lib/gitlab/health_checks')
-rw-r--r--spec/lib/gitlab/health_checks/fs_shards_check_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb b/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb
index 3de73a9ff65..947fb1b64d0 100644
--- a/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb
+++ b/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb
@@ -131,6 +131,12 @@ describe Gitlab::HealthChecks::FsShardsCheck do
expect(subject).to include(an_object_having_attributes(name: :filesystem_read_latency_seconds, value: be >= 0))
expect(subject).to include(an_object_having_attributes(name: :filesystem_write_latency_seconds, value: be >= 0))
end
+
+ it 'cleans up files used for metrics' do
+ subject
+
+ expect(Dir.entries(tmp_dir).count).to eq(2)
+ end
end
end
end