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:
parent
f07096f7e1
commit
e555e28eab
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue