DEV: Raise an error if any test finishes with more than 1 busy AR connection.
This commit is contained in:
parent
a17f5052a3
commit
bdf3da8f80
|
@ -133,6 +133,8 @@ RSpec.configure do |config|
|
|||
end
|
||||
|
||||
unfreeze_time
|
||||
|
||||
raise if ActiveRecord::Base.connection_pool.stat[:busy] > 1
|
||||
end
|
||||
|
||||
config.before :each do |x|
|
||||
|
|
Loading…
Reference in New Issue