actually disconnect from the database at the end of each test
This commit is contained in:
parent
29f0f254d2
commit
41be0fc3df
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user