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

Resolve deadlock in pooled connections test

This commit is contained in:
Jeremy Kemper 2009-11-10 11:00:29 -08:00
parent 7ad6e9bc78
commit 77478f21af

View file

@ -105,7 +105,7 @@ class PooledConnectionsTest < ActiveRecord::TestCase
Thread.new do Thread.new do
ActiveRecord::Base.connection.rollback_db_transaction ActiveRecord::Base.connection.rollback_db_transaction
ActiveRecord::Base.connection_pool.release_connection ActiveRecord::Base.connection_pool.release_connection
end.join rescue nil end
add_record('three') add_record('three')
end end