We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f2229 commit 6868418Copy full SHA for 6868418
spec/datadog/tracing/contrib/rails/support/base.rb
@@ -14,6 +14,11 @@
14
end
15
16
after do
17
+ # NOTE: We forsibly close connection pool to avoid leaking connection between
18
+ # test cases.
19
+ # This call is safe to be used on already closed connection pool.
20
+ application_record&.connection&.disconnect! if application_record&.connected?
21
+
22
# Reset references stored in the Rails class
23
Rails.application = nil
24
Rails.logger = nil
0 commit comments