Skip to content

Commit 8dac6a4

Browse files
authored
Merge pull request #4481 from DataDog/fix-leaking-thread-detection-for-connection-reaper
[NO-TICKET] Adjust leaking thread detection for new Rails
2 parents d2a9bda + f851bc4 commit 8dac6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
# WEBrick server thread
160160
t[:WEBrickSocket] ||
161161
# Rails connection reaper
162-
backtrace.find { |b| b.include?('lib/active_record/connection_adapters/abstract/connection_pool.rb') } ||
162+
backtrace.find { |b| b =~ %r{lib/active_record/connection_adapters/abstract/connection_pool(/reaper)?.rb} } ||
163163
# Ruby JetBrains debugger
164164
(t.class.name && t.class.name.include?('DebugThread')) ||
165165
# Categorized as a known leaky thread

0 commit comments

Comments
 (0)