debian-mirror-gitlab/spec/support/database/query_recorder.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
307 B
Ruby
Raw Normal View History

2023-01-13 00:05:48 +05:30
# frozen_string_literal: true
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)
end
end