From 9f3ae8eb5c65ec0c0019cfd0107344edda7bd90d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 21 Nov 2022 09:11:41 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/support/database/query_recorder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/support/database') diff --git a/spec/support/database/query_recorder.rb b/spec/support/database/query_recorder.rb index 1050120e528..3480430a0da 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_path = Rails.root.join(Gitlab::Database::QueryAnalyzers::QueryRecorder::LOG_FILE) - File.write(log_path, '') if File.exist?(log_path) + log_file = Rails.root.join(Gitlab::Database::QueryAnalyzers::QueryRecorder.log_file) + File.write(log_file, '') if File.exist?(log_file) end end -- cgit v1.2.3