aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 07308a07ce..9171dc6a31 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -904,7 +904,7 @@ class TestIO < Test::Unit::TestCase
with_pipe do |r, w|
s = ""
t = Thread.new { r.readpartial(5, s) }
- 0 until s.size == 5
+ Thread.pass until s.size == 5
assert_raise(RuntimeError) { s.clear }
w.write "foobarbaz"
w.close
@@ -939,7 +939,7 @@ class TestIO < Test::Unit::TestCase
with_pipe do |r, w|
s = ""
t = Thread.new { r.read(5, s) }
- 0 until s.size == 5
+ Thread.pass until s.size == 5
assert_raise(RuntimeError) { s.clear }
w.write "foobarbaz"
w.close