diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-29 18:07:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-29 18:07:02 +0300 |
commit | a466e9450d5949aa762913729918db02b5d27761 (patch) | |
tree | 8edfaac5434413a7fe160a6e50dfaee8ecf0f151 /spec/support | |
parent | d1d4dfb74a55a1b56b9451b2a844c57e05c9557f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/database/query_recorder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/database/query_recorder.rb b/spec/support/database/query_recorder.rb index 3480430a0da..1050120e528 100644 --- a/spec/support/database/query_recorder.rb +++ b/spec/support/database/query_recorder.rb @@ -3,7 +3,7 @@ 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) + log_path = Rails.root.join(Gitlab::Database::QueryAnalyzers::QueryRecorder::LOG_FILE) + File.write(log_path, '') if File.exist?(log_path) end end |