diff options
author | Patrick Mahoney <pat@polycrystal.org> | 2012-05-20 21:46:08 -0500 |
---|---|---|
committer | Patrick Mahoney <pat@polycrystal.org> | 2012-05-20 21:48:04 -0500 |
commit | d06674d5dfcecb6355890020ee2245b6e87b07e4 (patch) | |
tree | 4fecc2e1773aff8e92987a7a3ab4709601494e85 /activerecord/test/cases/connection_adapters | |
parent | 7c95be54b4c3f8ad2273eea39afa233f8f8b31c1 (diff) | |
download | rails-d06674d5dfcecb6355890020ee2245b6e87b07e4.tar.gz rails-d06674d5dfcecb6355890020ee2245b6e87b07e4.tar.bz2 rails-d06674d5dfcecb6355890020ee2245b6e87b07e4.zip |
Make connection pool fair with respect to waiting threads.
Diffstat (limited to 'activerecord/test/cases/connection_adapters')
-rw-r--r-- | activerecord/test/cases/connection_adapters/abstract_adapter_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb b/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb index 7dc6e8afcb..3e3d6e2769 100644 --- a/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb +++ b/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb @@ -36,7 +36,7 @@ module ActiveRecord def test_close pool = ConnectionPool.new(ConnectionSpecification.new({}, nil)) - pool.connections << adapter + pool.insert_connection_for_test! adapter adapter.pool = pool # Make sure the pool marks the connection in use |