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:
parent
ee725321b6
commit
7b14512bee
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue