ruby-changes:50778
From: nobu <ko1@a...>
Date: Wed, 28 Mar 2018 17:48:57 +0900 (JST)
Subject: [ruby-changes:50778] nobu:r62969 (trunk): adjust indents [ci skip]
nobu 2018-03-28 17:48:52 +0900 (Wed, 28 Mar 2018) New Revision: 62969 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62969 Log: adjust indents [ci skip] Modified files: trunk/test/webrick/test_httpauth.rb trunk/test/webrick/test_httpproxy.rb Index: test/webrick/test_httpauth.rb =================================================================== --- test/webrick/test_httpauth.rb (revision 62968) +++ test/webrick/test_httpauth.rb (revision 62969) @@ -230,7 +230,7 @@ class TestWEBrickHTTPAuth < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/webrick/test_httpauth.rb#L230 log.reject! {|line| pat =~ line } } assert_equal([], log) - } + } TestWEBrick.start_httpserver({}, log_tester) {|server, addr, port, log| realm = "wb auth-int realm" path = "/digest_auth_int" Index: test/webrick/test_httpproxy.rb =================================================================== --- test/webrick/test_httpproxy.rb (revision 62968) +++ test/webrick/test_httpproxy.rb (revision 62969) @@ -145,22 +145,23 @@ class TestWEBrickHTTPProxy < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/webrick/test_httpproxy.rb#L145 res.body = dig.hexdigest end end - http = Net::HTTP.new(o_addr, o_port) - IO.pipe do |rd, wr| - headers = { - 'Content-Type' => 'application/octet-stream', - 'Transfer-Encoding' => 'chunked', - } - post = Net::HTTP::Post.new('/', headers) - th = Thread.new { nr.times { wr.write(rand_str) }; wr.close } - post.body_stream = rd - http.request(post) do |res| - assert_equal 'text/plain', res['content-type'] - assert_equal 32, res.content_length - assert_equal exp, res.body - end - assert_nil th.value + + http = Net::HTTP.new(o_addr, o_port) + IO.pipe do |rd, wr| + headers = { + 'Content-Type' => 'application/octet-stream', + 'Transfer-Encoding' => 'chunked', + } + post = Net::HTTP::Post.new('/', headers) + th = Thread.new { nr.times { wr.write(rand_str) }; wr.close } + post.body_stream = rd + http.request(post) do |res| + assert_equal 'text/plain', res['content-type'] + assert_equal 32, res.content_length + assert_equal exp, res.body end + assert_nil th.value + end TestWEBrick.start_httpproxy do |p_server, p_addr, p_port, p_log| http = Net::HTTP.new(o_addr, o_port, p_addr, p_port) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/