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 | 04b618e53ed504be6f6a035f5637afbdca152dbc (patch) | |
tree | b91dcf94990c829d125c71f202e2e49072766b49 /test | |
parent | d8ea05c1267dafe0b64a315764362dfece295f80 (diff) | |
download | ruby-04b618e53ed504be6f6a035f5637afbdca152dbc.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 |