diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-11-15 11:29:12 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-11-15 11:29:12 -0800 |
commit | 314e2cc05b6cad93b6e8a3414b2c0106174239be (patch) | |
tree | ddcfbe280bfad2407cd3dfc5e9774fc30031e5fb /activerecord/test/cases/adapters/mysql2 | |
parent | 8c66623627277df9dcc3c6215d369d2c50775cc1 (diff) | |
parent | 2b0406cedb61c4c2f74ecca61fc07771e911fd35 (diff) | |
download | rails-314e2cc05b6cad93b6e8a3414b2c0106174239be.tar.gz rails-314e2cc05b6cad93b6e8a3414b2c0106174239be.tar.bz2 rails-314e2cc05b6cad93b6e8a3414b2c0106174239be.zip |
Merge pull request #12779 from dougbarth/dont_swallow_exceptions_during_transactional_statements_in_mysql
Don't swallow exceptions in transctional statements
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/connection_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/connection_test.rb b/activerecord/test/cases/adapters/mysql2/connection_test.rb index 679c515e8c..8dc1df1851 100644 --- a/activerecord/test/cases/adapters/mysql2/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql2/connection_test.rb @@ -18,6 +18,11 @@ class MysqlConnectionTest < ActiveRecord::TestCase @connection.update('set @@wait_timeout=1') sleep 2 assert !@connection.active? + + # Repair all fixture connections so other tests won't break. + @fixture_connections.each do |c| + c.verify! + end end def test_successful_reconnection_after_timeout_with_manual_reconnect |