1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2017-04-16 04:16:11 +00:00
parent d8ea05c126
commit 04b618e53e

View file

@ -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