DEV: Raise error with stats.

This commit is contained in:
Guo Xiang Tan 2019-01-09 10:53:38 +08:00
parent 2748822576
commit 4ddd8fad20
1 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,9 @@ RSpec.configure do |config|
unfreeze_time
ActionMailer::Base.deliveries.clear
raise if ActiveRecord::Base.connection_pool.stat[:busy] > 1
if ActiveRecord::Base.connection_pool.stat[:busy] > 1
raise ActiveRecord::Base.connection_pool.stat.inspect
end
end
config.before :each do |x|