Skip to content
This repository
Browse code

set encoding to binmode for pipe

  • Loading branch information...
commit 0e9144dcecb1a21627ec66ca3578308c43368ee9 1 parent 486db21
Anna Carey annaswims authored
2  activerecord/test/cases/base_test.rb
@@ -1380,6 +1380,8 @@ def test_marshal_between_processes
1380 1380 })
1381 1381
1382 1382 rd, wr = IO.pipe
  1383 + rd.binmode
  1384 + wr.binmode
1383 1385
1384 1386 ActiveRecord::Base.connection_handler.clear_all_connections!
1385 1387
2  activerecord/test/cases/connection_management_test.rb
@@ -31,6 +31,8 @@ def test_connection_pool_per_pid
31 31 object_id = ActiveRecord::Base.connection.object_id
32 32
33 33 rd, wr = IO.pipe
  34 + rd.binmode
  35 + wr.binmode
34 36
35 37 pid = fork {
36 38 rd.close
2  activesupport/lib/active_support/testing/isolation.rb
@@ -37,6 +37,8 @@ def run
37 37 module Forking
38 38 def run_in_isolation(&blk)
39 39 read, write = IO.pipe
  40 + read.binmode
  41 + write.binmode
40 42
41 43 pid = fork do
42 44 read.close

0 comments on commit 0e9144d

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