summaryrefslogtreecommitdiff
path: root/test/xmlrpc/webrick_testing.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-04 13:21:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-04 13:21:53 +0000
commit7a3f2845df7fe3fd9a2b0649e555dba7301fa164 (patch)
tree6b193327bc561c4c8989c72bdb6d69b80d150981 /test/xmlrpc/webrick_testing.rb
parentc7ea716d27a7c55db2f0fc25466122ac094433b5 (diff)
* test/xmlrpc: Don't use fixed ports: 8070 and 8071.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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