summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index ddce1d1af5..1b8179b516 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -3414,7 +3414,7 @@ __END__
end
end
q.pop
- sleep 0.01 while thread.status != 'sleep'
+ sleep 0.01 until thread.stop?
r.close
assert_raise_with_message(IOError, /stream closed/) do
thread.join