DEV: Fix heisentest.

Unpause sidekiq before clearning up all threads.
This commit is contained in:
Guo Xiang Tan 2019-02-19 08:19:15 +08:00
parent 4f5aebc338
commit 86a2172bda

View File

@ -32,8 +32,8 @@ describe ActiveRecord::ConnectionHandling do
end
after do
(Thread.list - @threads).each(&:kill)
Sidekiq.unpause!
(Thread.list - @threads).each(&:kill)
postgresql_fallback_handler.setup!
ActiveRecord::Base.unstub(:postgresql_connection)