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

clear all connections before forking

This commit is contained in:
Aaron Patterson 2013-08-31 13:13:49 -07:00
parent ccecf17b9b
commit a52966f612

View file

@ -1337,6 +1337,9 @@ class BasicsTest < ActiveRecord::TestCase
})
rd, wr = IO.pipe
ActiveRecord::Base.connection_handler.clear_all_connections!
fork do
rd.close
post = Post.new