DEV: Don't join on a thread forever.

This commit is contained in:
Guo Xiang Tan 2018-07-12 15:46:07 +08:00
parent ea0498ae93
commit 79ba418edd
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ describe ActiveRecord::ConnectionHandling do
ActiveRecord::Base.unstub(:postgresql_connection)
ActiveRecord::Base.establish_connection
(Thread.list - @threads).each(&:join)
(Thread.list - @threads).each { |thread| thread.join(5) }
end
describe "#postgresql_fallback_connection" do