Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
23a65635
Commit
23a65635
authored
Feb 11, 2022
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit leaks to gitlab_transactions_stack
Reset gitlab_transactions_stack after each example to limit leaks
parent
3312e2b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
spec/support/cross_database_modification.rb
spec/support/cross_database_modification.rb
+9
-0
No files found.
spec/support/cross_database_modification.rb
0 → 100644
View file @
23a65635
# frozen_string_literal: true
RSpec
.
configure
do
|
config
|
config
.
after
do
|
example
|
[
::
ApplicationRecord
,
::
Ci
::
ApplicationRecord
].
each
do
|
base_class
|
base_class
.
gitlab_transactions_stack
.
clear
if
base_class
.
respond_to?
(
:gitlab_transactions_stack
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment