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:
parent
91ba75806f
commit
676a00163d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue