From 04b618e53ed504be6f6a035f5637afbdca152dbc Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 16 Apr 2017 04:16:11 +0000 Subject: 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 --- test/ruby/test_io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') 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 -- cgit v1.2.3