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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-07 15:10:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-07 15:10:09 +0300
commit75f809a2ff829574ab91628407993187d55e14a4 (patch)
treee781d4cdc7bc7785e2d55e5186ccda1992763c93 /spec/support/database
parent9f99bf3b0e3516471806f3595e1619b8e9af2a80 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/database')
-rw-r--r--spec/support/database/prevent_cross_database_modification.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/database/prevent_cross_database_modification.rb b/spec/support/database/prevent_cross_database_modification.rb
index 759e8316cc5..cd0cbe733d1 100644
--- a/spec/support/database/prevent_cross_database_modification.rb
+++ b/spec/support/database/prevent_cross_database_modification.rb
@@ -28,8 +28,6 @@ RSpec.configure do |config|
config.after do |example_file|
::Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification.suppress_in_rspec = true
- [::ApplicationRecord, ::Ci::ApplicationRecord].each do |base_class|
- base_class.gitlab_transactions_stack.clear if base_class.respond_to?(:gitlab_transactions_stack)
- end
+ ::ApplicationRecord.gitlab_transactions_stack.clear
end
end