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

test_io_wait.rb: no EOF test

* test/io/wait/test_io_wait.rb (test_wait_eof): just test
  timeout.  follow r50263.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-04-12 06:46:28 +00:00
parent ee725321b6
commit 7b14512bee

View file

@ -70,7 +70,9 @@ class TestIOWait < Test::Unit::TestCase
def test_wait_eof
th = Thread.new { sleep 0.01; @w.close }
assert_nil @r.wait
assert_nothing_raised(Timeout::Error) do
Timeout.timeout(0.1) {@r.wait}
end
ensure
th.join
end