aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/transactions_test.rb
diff options
context:
space:
mode:
authorNick Sieger <nick@nicksieger.com>2008-08-22 14:11:44 -0500
committerNick Sieger <nick@nicksieger.com>2008-08-29 14:12:12 -0500
commitd07a6b1a4a234908959650197f596329ca08b4f0 (patch)
tree19d472f5548805372b370d5964322ea86696fedf /activerecord/test/cases/transactions_test.rb
parent212134dce158db0ecb4169c28fd9ef80ea1a55b2 (diff)
downloadrails-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.rb3
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