diff options
author | Nick Sieger <nick@nicksieger.com> | 2008-08-22 14:11:44 -0500 |
---|---|---|
committer | Nick Sieger <nick@nicksieger.com> | 2008-08-29 14:12:12 -0500 |
commit | d07a6b1a4a234908959650197f596329ca08b4f0 (patch) | |
tree | 19d472f5548805372b370d5964322ea86696fedf /activerecord/test/cases/transactions_test.rb | |
parent | 212134dce158db0ecb4169c28fd9ef80ea1a55b2 (diff) | |
download | rails-d07a6b1a4a234908959650197f596329ca08b4f0.tar.gz rails-d07a6b1a4a234908959650197f596329ca08b4f0.tar.bz2 rails-d07a6b1a4a234908959650197f596329ca08b4f0.zip |
Make clear_active_connections! also return stale connections back to the pool
- also clean up some cruft remaining from per-thread connection cache
Diffstat (limited to 'activerecord/test/cases/transactions_test.rb')
-rw-r--r-- | activerecord/test/cases/transactions_test.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index d3cc69507a..8383ba58e9 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -296,7 +296,6 @@ if current_adapter?(:PostgreSQLAdapter) topic.approved = !topic.approved? topic.save! end - Topic.clear_active_connections! end end @@ -332,7 +331,6 @@ if current_adapter?(:PostgreSQLAdapter) dev = Developer.find(1) assert_equal original_salary, dev.salary end - Developer.clear_active_connections! end end @@ -344,7 +342,6 @@ if current_adapter?(:PostgreSQLAdapter) # Always expect original salary. assert_equal original_salary, Developer.find(1).salary end - Developer.clear_active_connections! end end |