From 39489d138f3e1bf9119d2831f4a71763ad8cadff Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 4 Jan 2012 16:18:38 -0800 Subject: clear the sql counter on teardown so the GC can do it's thing --- activerecord/test/active_record/test_case.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/active_record') diff --git a/activerecord/test/active_record/test_case.rb b/activerecord/test/active_record/test_case.rb index 5398a14fc6..2f18eba157 100644 --- a/activerecord/test/active_record/test_case.rb +++ b/activerecord/test/active_record/test_case.rb @@ -9,6 +9,10 @@ module ActiveRecord cleanup_identity_map end + def teardown + ActiveRecord::SQLCounter.log.clear + end + def cleanup_identity_map ActiveRecord::IdentityMap.clear end -- cgit v1.2.3