ruby-changes:38179
From: nobu <ko1@a...>
Date: Sun, 12 Apr 2015 21:11:50 +0900 (JST)
Subject: [ruby-changes:38179] nobu:r50266 (trunk): test_io_wait.rb: no EOF test
nobu 2015-04-12 15:46:28 +0900 (Sun, 12 Apr 2015) New Revision: 50266 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50266 Log: test_io_wait.rb: no EOF test * test/io/wait/test_io_wait.rb (test_wait_eof): just test timeout. follow r50263. Modified files: trunk/test/io/wait/test_io_wait.rb Index: test/io/wait/test_io_wait.rb =================================================================== --- test/io/wait/test_io_wait.rb (revision 50265) +++ test/io/wait/test_io_wait.rb (revision 50266) @@ -70,7 +70,9 @@ class TestIOWait < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/io/wait/test_io_wait.rb#L70 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/