1
0
Fork 0
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:
Aaron Patterson 2012-01-03 11:06:27 -08:00
parent 29f0f254d2
commit 41be0fc3df

View file

@ -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?