Permalink
Browse files

clear all connections before forking

  • Loading branch information...
1 parent ccecf17 commit a52966f6123d6eb6b66db3c93bb565892f71c3cc @tenderlove tenderlove committed Aug 31, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 activerecord/test/cases/base_test.rb
@@ -1337,6 +1337,9 @@ def test_marshal_between_processes
})
rd, wr = IO.pipe
+
+ ActiveRecord::Base.connection_handler.clear_all_connections!
+
fork do
rd.close
post = Post.new

0 comments on commit a52966f

Please sign in to comment.