提交 a8a97f77 编写于 作者: Y Yves Senn 提交者: GitHub

Merge pull request #27621 from dylanahsmith/mysql2-nil-connection-test

activerecord/test: Fix Mysql2ConnectionTest#test_execute_after_disconnect
......@@ -66,9 +66,10 @@ def test_successful_reconnection_after_timeout_with_verify
def test_execute_after_disconnect
@connection.disconnect!
assert_raise(ActiveRecord::StatementInvalid) do
error = assert_raise(ActiveRecord::StatementInvalid) do
@connection.execute("SELECT 1")
end
assert_kind_of Mysql2::Error, error.cause
end
def test_quote_after_disconnect
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册