From ec1315c9e9175d755dfd7b4acb8398fa7c7a924e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 5 Oct 2010 21:29:51 +0000 Subject: test_tee_input: use a socketpair() It's a much closer representation of what we'd expect in the real server than a mono-directional UNIX pipe. --- test/unit/test_tee_input.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/test_tee_input.rb b/test/unit/test_tee_input.rb index 3b10873..56b8952 100644 --- a/test/unit/test_tee_input.rb +++ b/test/unit/test_tee_input.rb @@ -10,7 +10,7 @@ class TestTeeInput < Test::Unit::TestCase def setup @rs = $/ @env = {} - @rd, @wr = IO.pipe + @rd, @wr = UNIXSocket.pair @rd.sync = @wr.sync = true @start_pid = $$ end -- cgit v1.2.3-24-ge0c7