Permalink
Browse files

actually disconnect from the database at the end of each test

  • Loading branch information...
1 parent 29f0f25 commit 41be0fc3df4cc080df912ae87bd1c8503f2b348d @tenderlove tenderlove committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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?

0 comments on commit 41be0fc

Please sign in to comment.