summaryrefslogtreecommitdiff
path: root/test/xmlrpc/webrick_testing.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-13 00:56:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-13 00:56:40 +0000
commitc84e52921968ddcca88ad58ab2d8bdc69c3e45ab (patch)
tree739eee7a938d92aa01f969c1295b8fefb7e4a8d2 /test/xmlrpc/webrick_testing.rb
parent00e84afa3343d277129d452c3b0b455fe2c71c38 (diff)
* 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
Diffstat (limited to 'test/xmlrpc/webrick_testing.rb')
-rw-r--r--test/xmlrpc/webrick_testing.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index 4c0cf89f1a1..f112836a6ac 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -18,8 +18,13 @@ module WEBrick_Testing
:StartCallback => proc { @__started = true }
}.update(config))
yield @__server
- @__server.start
- @__started = false
+ begin
+ @__server.start
+ rescue IOError => e
+ assert_match(/closed/, e.message)
+ ensure
+ @__started = false
+ end
}
Timeout.timeout(5) {