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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index c72895a9d17..464d61dc17b 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -20,6 +20,8 @@ module WEBrick_Testing
yield @__server
@__started = true
+ addr = @__server.listeners.first.connect_address
+
@__server_thread = Thread.new {
begin
@__server.start
@@ -29,6 +31,8 @@ module WEBrick_Testing
@__started = false
end
}
+
+ addr
end
def stop_server