mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
actually disconnect from the database at the end of each test
This commit is contained in:
parent
29f0f254d2
commit
41be0fc3df
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module ActiveRecord
|
|||
|
||||
def teardown
|
||||
super
|
||||
@pool.connections.each(&:close)
|
||||
@pool.disconnect!
|
||||
end
|
||||
|
||||
def test_full_pool_exception
|
||||
|
@ -81,7 +81,7 @@ module ActiveRecord
|
|||
@pool.remove conn
|
||||
assert_not_equal(conn, @pool.connection)
|
||||
ensure
|
||||
conn.close
|
||||
conn.close if conn
|
||||
end
|
||||
|
||||
def test_active_connection?
|
||||
|
|
Loading…
Reference in a new issue