mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/net/http/utils.rb: Don't connect to spawned server
before actual test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
61ad543a33
commit
179fde39ef
2 changed files with 5 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Nov 9 02:05:33 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/net/http/utils.rb: Don't connect to spawned server
|
||||
before actual test.
|
||||
|
||||
Sun Nov 9 01:51:50 2014 Benoit Daloze <eregontp@gmail.com>
|
||||
|
||||
* object.c (Module#const_defined?): [DOC] Revise the documentation.
|
||||
|
|
|
@ -63,15 +63,6 @@ module TestNetHTTPUtils
|
|||
@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
|
||||
|
|
Loading…
Add table
Reference in a new issue