summaryrefslogtreecommitdiff
path: root/test/xmlrpc/webrick_testing.rb
diff options
context:
space:
mode:
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 4c0cf89f1a..f112836a6a 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) {