未验证 提交 addac272 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #38922 from kirs/remove-dead-code-pooled_connections_test

Remove dead code in tests
......@@ -70,9 +70,4 @@ def test_pooled_connection_remove
ActiveRecord::Base.connection_pool.remove(extra_connection)
assert_equal ActiveRecord::Base.connection, old_connection
end
private
def add_record(name)
ActiveRecord::Base.connection_pool.with_connection { Project.create! name: name }
end
end unless in_memory_db?
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册