提交 41be0fc3 编写于 作者: A Aaron Patterson

actually disconnect from the database at the end of each test

上级 29f0f254
......@@ -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?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册