Created
June 16, 2011 05:10
-
-
Save nagachika/1028705 to your computer and use it in GitHub Desktop.
patch for test_io.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb | |
index fba0800..4521a90 100644 | |
--- a/test/ruby/test_io.rb | |
+++ b/test/ruby/test_io.rb | |
@@ -621,9 +621,10 @@ class TestIO < Test::Unit::TestCase | |
nr.times do | |
assert_equal megacontent.bytesize, IO.copy_stream("megasrc", s1 | |
) | |
end | |
+ sleep 0.5 | |
assert_equal(1, @usr1_rcvd) | |
- s1.close | |
ensure | |
+ s1.close | |
_, status = Process.waitpid2(pid) if pid | |
end | |
assert status.success?, status.inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment