提交 c462ada9 编写于 作者: A Andrew White 提交者: GitHub

Merge pull request #28186 from kirs/patch-2

Refactor connection_pool_test
......@@ -307,14 +307,17 @@ def test_checkout_fairness_by_group
end
end
def test_automatic_reconnect=
def test_automatic_reconnect_restores_after_disconnect
pool = ConnectionPool.new ActiveRecord::Base.connection_pool.spec
assert pool.automatic_reconnect
assert pool.connection
pool.disconnect!
assert pool.connection
end
def test_automatic_reconnect_can_be_disabled
pool = ConnectionPool.new ActiveRecord::Base.connection_pool.spec
pool.disconnect!
pool.automatic_reconnect = false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册