1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "Merge pull request #19881 from sikachu/silence-mysql-errno-warning"

This reverts commit 55d9e494e8, reversing
changes made to 03e987cd8f.

Legacy mysql adapter is already removed in #22642.
This commit is contained in:
Ryuta Kamizono 2020-09-02 16:39:41 +09:00
parent 3afa536c42
commit f08ae57955

View file

@ -23,9 +23,7 @@ class TestDisconnectedAdapter < ActiveRecord::TestCase
@connection.execute "SELECT count(*) from products"
@connection.disconnect!
assert_raises(ActiveRecord::StatementInvalid) do
silence_warnings do
@connection.execute "SELECT count(*) from products"
end
@connection.execute "SELECT count(*) from products"
end
end
end