Permalink
Browse files

clear the sql counter on teardown so the GC can do it's thing

  • Loading branch information...
1 parent 1b276d5 commit 39489d138f3e1bf9119d2831f4a71763ad8cadff @tenderlove tenderlove committed Jan 5, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/test/active_record/test_case.rb
@@ -9,6 +9,10 @@ def setup
cleanup_identity_map
end
+ def teardown
+ ActiveRecord::SQLCounter.log.clear
+ end
+
def cleanup_identity_map
ActiveRecord::IdentityMap.clear
end

0 comments on commit 39489d1

Please sign in to comment.