DEV: Better debugging information when test fails.

This commit is contained in:
Guo Xiang Tan 2018-09-03 10:55:25 +08:00
parent 7256b3bf68
commit 0fac6cdba9
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ describe ActiveRecord::ConnectionHandling do
(Thread.list - @threads).each do |thread|
unless thread.join(5)
raise "Thread still running: #{thread}"
puts Thread.list - @threads
raise "Threads still running"
end
end