* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
catch IOError when server socket was closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
00e84afa33
commit
c84e529219
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 13 09:56:32 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
|
||||||
|
catch IOError when server socket was closed.
|
||||||
|
|
||||||
Sun Feb 13 07:39:51 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sun Feb 13 07:39:51 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* enum.c (enum_inject): typo fixed. a patch from Gaku Ueda in
|
* enum.c (enum_inject): typo fixed. a patch from Gaku Ueda in
|
||||||
|
@ -18,8 +18,13 @@ module WEBrick_Testing
|
|||||||
:StartCallback => proc { @__started = true }
|
:StartCallback => proc { @__started = true }
|
||||||
}.update(config))
|
}.update(config))
|
||||||
yield @__server
|
yield @__server
|
||||||
@__server.start
|
begin
|
||||||
@__started = false
|
@__server.start
|
||||||
|
rescue IOError => e
|
||||||
|
assert_match(/closed/, e.message)
|
||||||
|
ensure
|
||||||
|
@__started = false
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
Timeout.timeout(5) {
|
Timeout.timeout(5) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user