提交 3af68df0 编写于 作者: A Aaron Patterson

just dup the spec now that it will deep copy

上级 ddde5488
......@@ -47,8 +47,7 @@ def test_pool_has_reaper
end
def test_reaping_frequency_configuration
spec = ActiveRecord::Base.connection_pool.spec
spec = ConnectionSpecification.new(spec.config.dup, spec.adapter_method)
spec = ActiveRecord::Base.connection_pool.spec.dup
spec.config[:reaping_frequency] = 100
pool = ConnectionPool.new spec
assert_equal 100, pool.reaper.frequency
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册