1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Join threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-05-31 14:28:19 +00:00
parent f07096f7e1
commit e555e28eab

View file

@ -34,9 +34,7 @@ module TestNetHTTPUtils
def teardown
if @server
@server.shutdown
until @server.status == :Stop
sleep 0.1
end
@server_thread.join
end
# resume global state
Net::HTTP.version_1_2
@ -63,7 +61,7 @@ module TestNetHTTPUtils
end
@server = WEBrick::HTTPServer.new(server_config)
@server.mount('/', Servlet, config('chunked'))
@server.start
@server_thread = @server.start
@config['port'] = @server[:Port]
n_try_max = 5
begin