ruby-changes:34212
From: akr <ko1@a...>
Date: Mon, 2 Jun 2014 09:26:43 +0900 (JST)
Subject: [ruby-changes:34212] akr:r46282 (trunk): Join threads.
akr 2014-05-31 23:28:19 +0900 (Sat, 31 May 2014) New Revision: 46282 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=46282&view=revision Log: Join threads. Modified files: trunk/test/net/http/utils.rb Index: test/net/http/utils.rb =================================================================== --- test/net/http/utils.rb (revision 46281) +++ test/net/http/utils.rb (revision 46282) @@ -34,9 +34,7 @@ module TestNetHTTPUtils https://github.com/ruby/ruby/blob/trunk/test/net/http/utils.rb#L34 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 https://github.com/ruby/ruby/blob/trunk/test/net/http/utils.rb#L61 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/