diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-26 18:08:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-26 18:08:51 +0300 |
commit | a3a9c1103b0f023deafc9fc9307032085419ff7d (patch) | |
tree | d4c73cc6e63e4ba79b1a854a747142e02dd4250d /spec/support/database | |
parent | 597d5ed08988cb00681eaf252d04ebae4bd24731 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/database')
-rw-r--r-- | spec/support/database/query_recorder.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/support/database/query_recorder.rb b/spec/support/database/query_recorder.rb deleted file mode 100644 index c0736221af3..00000000000 --- a/spec/support/database/query_recorder.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -RSpec.configure do |config| - # Truncate the query_recorder log file before starting the suite - config.before(:suite) do - log_file = Rails.root.join(Gitlab::Database::QueryAnalyzers::QueryRecorder.log_file) - File.write(log_file, '') if File.exist?(log_file) - File.delete("#{log_file}.gz") if File.exist?("#{log_file}.gz") - end - - config.after(:suite) do - if ENV['CI'] - log_file = Rails.root.join(Gitlab::Database::QueryAnalyzers::QueryRecorder.log_file) - system("gzip #{log_file}") if File.exist?(log_file) - end - end -end |