summaryrefslogtreecommitdiff
path: root/bootstraptest/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r--bootstraptest/test_io.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb
index 89c00d0..731c3e4 100644
--- a/bootstraptest/test_io.rb
+++ b/bootstraptest/test_io.rb
@@ -30,11 +30,11 @@ assert_finish 10, %q{
end
}, '[ruby-dev:32566]'
-assert_finish 1, %q{
+assert_finish 2, %q{
r, w = IO.pipe
- Thread.new {
+ Thread.new(Thread.current) { |parent|
w << "ab"
- sleep 0.01
+ Thread.pass until parent.stop?
w << "ab"
}
r.gets("abab")