mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Raise an error if any test finishes with more than 1 busy AR connection.
This commit is contained in:
parent
a17f5052a3
commit
bdf3da8f80
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue