Commit 23a65635 authored by Thong Kuah's avatar Thong Kuah

Limit leaks to gitlab_transactions_stack

Reset gitlab_transactions_stack after each example to limit leaks
parent 3312e2b3
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment