1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

clear any stale connections before messing with threaded tests

This commit is contained in:
Aaron Patterson 2010-10-13 16:58:03 -07:00
parent 91ba75806f
commit 676a00163d

View file

@ -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