Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

actually disconnect from the database at the end of each test

  • Loading branch information...
commit 41be0fc3df4cc080df912ae87bd1c8503f2b348d 1 parent 29f0f25
@tenderlove tenderlove authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/connection_pool_test.rb
View
4 activerecord/test/cases/connection_pool_test.rb
@@ -22,7 +22,7 @@ def setup
def teardown
super
- @pool.connections.each(&:close)
+ @pool.disconnect!
end
def test_full_pool_exception
@@ -81,7 +81,7 @@ def test_remove_connection_for_thread
@pool.remove conn
assert_not_equal(conn, @pool.connection)
ensure
- conn.close
+ conn.close if conn
end
def test_active_connection?
Please sign in to comment.
Something went wrong with that request. Please try again.