Skip to content

Commit

Permalink
Revert "Merge pull request rails#19881 from sikachu/silence-mysql-err…
Browse files Browse the repository at this point in the history
…no-warning"

This reverts commit 55d9e49, reversing
changes made to 03e987c.

Legacy mysql adapter is already removed in rails#22642.
  • Loading branch information
kamipo committed Sep 14, 2020
1 parent e7a9f9d commit d097ee9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions activerecord/test/cases/disconnected_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def setup
@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
Expand Down

0 comments on commit d097ee9

Please sign in to comment.