Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13745 from nextgearcapital/master

set encoding for pipe to binary mode
  • Loading branch information...
commit b1b21f9325bca6988f261e0a489cd319fb97d0fa 2 parents 935d235 + 0e9144d
@rafaelfranca rafaelfranca authored
View
2  activerecord/test/cases/base_test.rb
@@ -1380,6 +1380,8 @@ def test_marshal_between_processes
})
rd, wr = IO.pipe
+ rd.binmode
+ wr.binmode
ActiveRecord::Base.connection_handler.clear_all_connections!
View
2  activerecord/test/cases/connection_management_test.rb
@@ -31,6 +31,8 @@ def test_connection_pool_per_pid
object_id = ActiveRecord::Base.connection.object_id
rd, wr = IO.pipe
+ rd.binmode
+ wr.binmode
pid = fork {
rd.close
View
2  activesupport/lib/active_support/testing/isolation.rb
@@ -37,6 +37,8 @@ def run
module Forking
def run_in_isolation(&blk)
read, write = IO.pipe
+ read.binmode
+ write.binmode
pid = fork do
read.close
Please sign in to comment.
Something went wrong with that request. Please try again.