diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-11 23:27:43 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-11 23:38:18 +0100 |
commit | cccb9988002f7b44133c089654b417ae9808b65f (patch) | |
tree | 83240e3731ca08c5ef4db4a0e03e85f09241bf14 /activerecord/test | |
parent | d382e93d8f1a4e577bf408a952e1406ca6f47d27 (diff) | |
download | rails-cccb9988002f7b44133c089654b417ae9808b65f.tar.gz rails-cccb9988002f7b44133c089654b417ae9808b65f.tar.bz2 rails-cccb9988002f7b44133c089654b417ae9808b65f.zip |
Expose connections available in the connection pool.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/pooled_connections_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/pooled_connections_test.rb b/activerecord/test/cases/pooled_connections_test.rb index 2529a33dab..4e54079ba5 100644 --- a/activerecord/test/cases/pooled_connections_test.rb +++ b/activerecord/test/cases/pooled_connections_test.rb @@ -61,12 +61,14 @@ class PooledConnectionsTest < ActiveRecord::TestCase checkout_checkin_connections 1, 2 assert_equal 2, @connection_count assert_equal 0, @timed_out + assert_equal 1, ActiveRecord::Base.connection_pool.connections.size end def test_pooled_connection_checkin_two checkout_checkin_connections 2, 3 assert_equal 3, @connection_count assert_equal 0, @timed_out + assert_equal 1, ActiveRecord::Base.connection_pool.connections.size end def test_pooled_connection_checkout_existing_first |