diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-13 16:58:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-13 16:58:03 -0700 |
commit | 676a00163d384111c8c7dc6cb319943249f83253 (patch) | |
tree | cb12c52836e8484fb90bfc7677393be4b133c2cb /activerecord/test/cases | |
parent | 91ba75806f20195b06b9a2197cf5f40a238231d5 (diff) | |
download | rails-676a00163d384111c8c7dc6cb319943249f83253.tar.gz rails-676a00163d384111c8c7dc6cb319943249f83253.tar.bz2 rails-676a00163d384111c8c7dc6cb319943249f83253.zip |
clear any stale connections before messing with threaded tests
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/locking_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb index 48719c660d..4ddcdc010b 100644 --- a/activerecord/test/cases/locking_test.rb +++ b/activerecord/test/cases/locking_test.rb @@ -257,6 +257,7 @@ unless current_adapter?(:SybaseAdapter, :OpenBaseAdapter) fixtures :people, :readers def setup + Person.connection_pool.clear_reloadable_connections! # Avoid introspection queries during tests. Person.columns; Reader.columns end |