summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-16 04:16:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-16 04:16:11 +0000
commit04b618e53ed504be6f6a035f5637afbdca152dbc (patch)
treeb91dcf94990c829d125c71f202e2e49072766b49 /test/ruby/test_io.rb
parentd8ea05c1267dafe0b64a315764362dfece295f80 (diff)
test/ruby/test_io.rb: use Thread.stop? to wait
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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