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 9304c11 commit 590e43cCopy full SHA for 590e43c
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!
21
+
22
# Reset references stored in the Rails class
23
Rails.application = nil
24
Rails.logger = nil
0 commit comments