Skip to content

Instantly share code, notes, and snippets.

@nagachika
Created June 16, 2011 05:10
Show Gist options
  • Save nagachika/1028705 to your computer and use it in GitHub Desktop.
Save nagachika/1028705 to your computer and use it in GitHub Desktop.
patch for test_io.rb
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