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