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:
parent
ccecf17b9b
commit
a52966f612
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue