mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
DEV: Raise error with stats.
This commit is contained in:
parent
2748822576
commit
4ddd8fad20
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue
Block a user