mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Include the thread in the error message.
This commit is contained in:
parent
6ada825a4d
commit
ae2f00ee73
@ -42,7 +42,9 @@ describe ActiveRecord::ConnectionHandling do
|
||||
ActiveRecord::Base.unstub(:postgresql_connection)
|
||||
|
||||
(Thread.list - @threads).each do |thread|
|
||||
raise "Thread still running" unless thread.join(5)
|
||||
unless thread.join(5)
|
||||
raise "Thread still running: #{thread}"
|
||||
end
|
||||
end
|
||||
|
||||
ActiveRecord::Base.establish_connection
|
||||
|
Loading…
Reference in New Issue
Block a user