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:
parent
7ad6e9bc78
commit
77478f21af
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue