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 e7a9f9de41
commit d097ee9706
1 changed files with 1 additions and 3 deletions

View File

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