mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 08:55:46 +08:00
DEV: Don't join on a thread forever.
This commit is contained in:
parent
ea0498ae93
commit
79ba418edd
@ -42,7 +42,7 @@ describe ActiveRecord::ConnectionHandling do
|
|||||||
ActiveRecord::Base.unstub(:postgresql_connection)
|
ActiveRecord::Base.unstub(:postgresql_connection)
|
||||||
ActiveRecord::Base.establish_connection
|
ActiveRecord::Base.establish_connection
|
||||||
|
|
||||||
(Thread.list - @threads).each(&:join)
|
(Thread.list - @threads).each { |thread| thread.join(5) }
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#postgresql_fallback_connection" do
|
describe "#postgresql_fallback_connection" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user