ruby-changes:36240
From: akr <ko1@a...>
Date: Sun, 9 Nov 2014 02:06:21 +0900 (JST)
Subject: [ruby-changes:36240] akr:r48321 (trunk): * test/net/http/utils.rb: Don't connect to spawned server
akr 2014-11-09 02:06:10 +0900 (Sun, 09 Nov 2014) New Revision: 48321 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48321 Log: * test/net/http/utils.rb: Don't connect to spawned server before actual test. Modified files: trunk/ChangeLog trunk/test/net/http/utils.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48320) +++ ChangeLog (revision 48321) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Nov 9 02:05:33 2014 Tanaka Akira <akr@f...> + + * test/net/http/utils.rb: Don't connect to spawned server + before actual test. + Sun Nov 9 01:51:50 2014 Benoit Daloze <eregontp@g...> * object.c (Module#const_defined?): [DOC] Revise the documentation. Index: test/net/http/utils.rb =================================================================== --- test/net/http/utils.rb (revision 48320) +++ test/net/http/utils.rb (revision 48321) @@ -63,15 +63,6 @@ module TestNetHTTPUtils https://github.com/ruby/ruby/blob/trunk/test/net/http/utils.rb#L63 @server.mount('/', Servlet, config('chunked')) @server_thread = @server.start @config['port'] = @server[:Port] - n_try_max = 5 - begin - TCPSocket.open(config('host'), config('port')).close - rescue Errno::ECONNREFUSED - sleep 0.2 - n_try_max -= 1 - raise 'cannot spawn server; give up' if n_try_max < 0 - retry - end end $test_net_http = nil -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/