diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-19 12:29:46 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-19 12:29:46 +0000 |
commit | 6895e77ffc3029b83985b0cbfea26dbe2bc1e7b0 () | |
tree | ffca062e2149daf4b8dd430c68ab2540207abd57 /test/net/http/utils.rb | |
parent | 2127b9cfc75da93e3fc43cc830ede0670010d010 (diff) |
* test/net/http/utils.rb (spawn_server): Specify zero for port to
avoid reusing an allocated port. * test/net/http/test_http.rb: Don't specify port here. * test/net/http/test_https.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/net/http/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,7 +46,7 @@ module TestNetHTTPUtils @config = self.class::CONFIG server_config = { :BindAddress => config('host'), - :Port => config('port'), :Logger => WEBrick::Log.new(NullWriter.new), :AccessLog => [], :ShutdownSocketWithoutClose => true, @@ -65,7 +65,7 @@ module TestNetHTTPUtils @server = WEBrick::HTTPServer.new(server_config) @server.mount('/', Servlet, config('chunked')) @server.start - @config['port'] = @server[:Port] if @config['port'] == 0 n_try_max = 5 begin TCPSocket.open(config('host'), config('port')).close |