Skip to content
Browse files

set encoding to binmode for pipe

  • Loading branch information...
1 parent 486db21 commit 0e9144dcecb1a21627ec66ca3578308c43368ee9 @annaswims annaswims committed Jan 17, 2014
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

0 comments on commit 0e9144d

Please sign in to comment.
Something went wrong with that request. Please try again.