diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-16 04:16:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-16 04:16:11 +0000 |
commit | 91e4f9df4add2e8729b51b7dc810032e90724f4f (patch) | |
tree | b91dcf94990c829d125c71f202e2e49072766b49 /test | |
parent | 728b5c879839be9359abf631d67d5775e6956b22 (diff) | |
download | ruby-91e4f9df4add2e8729b51b7dc810032e90724f4f.tar.gz |
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')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
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 |