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

r35304 changes the exception.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-04-12 02:51:02 +00:00
parent 45b3509ce1
commit 1d6d4d2461

View file

@ -113,7 +113,7 @@ class TestOpenURI < Test::Unit::TestCase
end
}
begin
assert_raise(Timeout::Error) { URI("http://127.0.0.1:#{port}/foo/bar").read(:read_timeout=>0.01) }
assert_raise(Net::ReadTimeout) { URI("http://127.0.0.1:#{port}/foo/bar").read(:read_timeout=>0.01) }
ensure
Thread.kill(th)
th.join