Permalink
Browse files

reconnect after the fork returns

  • Loading branch information...
1 parent fcb9288 commit baf5f47b8768c7ec0164ed5ab60e369cdd936d71 @tenderlove tenderlove committed Aug 31, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/base_test.rb
@@ -1348,6 +1348,8 @@ def test_marshal_between_processes
wr.close
assert Marshal.load rd.read
rd.close
+ ensure
+ ActiveRecord::Base.connection.reconnect!
end
def test_marshalling_new_record_round_trip_with_associations

0 comments on commit baf5f47

Please sign in to comment.