mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Raise an error if any test finishes with more than 1 busy AR connection.
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user