summaryrefslogtreecommitdiff
path: root/test/io/wait/test_io_wait.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-12 06:46:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-12 06:46:28 +0000
commit7b14512bee222bdb6392e865b00ef4b4c42b9364 (patch)
tree87d08cde6c535b695d643888cd21287873f3b028 /test/io/wait/test_io_wait.rb
parentee725321b693a1835957f3f6175ad77b5d2a9064 (diff)
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
Diffstat (limited to 'test/io/wait/test_io_wait.rb')
-rw-r--r--test/io/wait/test_io_wait.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index 7729d45526d..60886e0f6b9 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -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