summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-08 17:06:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-08 17:06:10 +0000
commit179fde39efbe644114326ee862edaa7628d88f4e (patch)
treeaa505bda306a36c45393d2d89c0abbf48836a72e /test/net
parent61ad543a33fe10d21d1dc85efcbf3e9d96cc93b7 (diff)
* 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
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/utils.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/net/http/utils.rb b/test/net/http/utils.rb
index c629da8..7afef41 100644
--- a/test/net/http/utils.rb
+++ b/test/net/http/utils.rb
@@ -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