ruby-changes:23207
From: naruse <ko1@a...>
Date: Sun, 8 Apr 2012 08:41:38 +0900 (JST)
Subject: [ruby-changes:23207] naruse:r35257 (trunk): * Remove unused variables.
naruse 2012-04-08 08:41:27 +0900 (Sun, 08 Apr 2012) New Revision: 35257 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35257 Log: * Remove unused variables. * use Thread.pass instead of true. Modified files: trunk/test/webrick/test_httpserver.rb Index: test/webrick/test_httpserver.rb =================================================================== --- test/webrick/test_httpserver.rb (revision 35256) +++ test/webrick/test_httpserver.rb (revision 35257) @@ -115,10 +115,10 @@ host3 = httpd(addr1, port1, name2, alias1), host4 = httpd(addr1, port2, name1, nil), host5 = httpd(addr1, port2, name2, alias1), - host6 = httpd(addr1, port2, name3, alias2), + httpd(addr1, port2, name3, alias2), host7 = httpd(addr2, nil, name1, nil), host8 = httpd(addr2, nil, name2, alias1), - host9 = httpd(addr2, nil, name3, alias2), + httpd(addr2, nil, name3, alias2), host10 = httpd(local, nil, nil, nil), host11 = httpd(nil, port3, nil, nil), ].sort_by{ rand } @@ -235,7 +235,7 @@ } server.virtual_host(WEBrick::HTTPServer.new(vhost_config)) - true while server.status != :Running + Thread.pass while server.status != :Running assert_equal(started, 1, log.call) assert_equal(stopped, 0, log.call) assert_equal(accepted, 0, log.call) @@ -356,7 +356,7 @@ :RequestHandler => Proc.new{|req, res| requested += 1 }, } TestWEBrick.start_httpserver(config){|server, addr, port, log| - true while server.status != :Running + Thread.pass while server.status != :Running http = Net::HTTP.new(addr, port) req = Net::HTTP::Get.new("/") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/