DEV: Better debugging information when test fails.
This commit is contained in:
parent
7256b3bf68
commit
0fac6cdba9
|
@ -43,7 +43,8 @@ describe ActiveRecord::ConnectionHandling do
|
||||||
|
|
||||||
(Thread.list - @threads).each do |thread|
|
(Thread.list - @threads).each do |thread|
|
||||||
unless thread.join(5)
|
unless thread.join(5)
|
||||||
raise "Thread still running: #{thread}"
|
puts Thread.list - @threads
|
||||||
|
raise "Threads still running"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue