Suppress warnings

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-04-02 06:28:13 +00:00
parent 4046585a20
commit 63f33c5e46
3 changed files with 6 additions and 4 deletions

View File

@ -82,10 +82,10 @@ class TestWEBrickHTTPAuth < Test::Unit::TestCase
end end
DIGESTRES_ = / DIGESTRES_ = /
([a-zA-z\-]+) ([a-zA-Z\-]+)
[\s\t]*(?:\r\n[\s\t]*)* [ \t]*(?:\r\n[ \t]*)*
= =
[\s\t]*(?:\r\n[\s\t]*)* [ \t]*(?:\r\n[ \t]*)*
(?: (?:
"((?:[^"]+|\\[\x00-\x7F])*)" | "((?:[^"]+|\\[\x00-\x7F])*)" |
([!\#$%&'*+\-.0-9A-Z^_`a-z|~]+) ([!\#$%&'*+\-.0-9A-Z^_`a-z|~]+)

View File

@ -159,11 +159,13 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
end end
req = Net::HTTP::Get.new("/") req = Net::HTTP::Get.new("/")
req["Content-Type"] = "application/x-www-form-urlencoded"
http.request(req){|res| http.request(req){|res|
assert_equal("SSL GET / ", res.body, s_log.call + log.call) assert_equal("SSL GET / ", res.body, s_log.call + log.call)
} }
req = Net::HTTP::Post.new("/") req = Net::HTTP::Post.new("/")
req["Content-Type"] = "application/x-www-form-urlencoded"
req.body = "post-data" req.body = "post-data"
http.request(req){|res| http.request(req){|res|
assert_equal("SSL POST / post-data", res.body, s_log.call + log.call) assert_equal("SSL POST / post-data", res.body, s_log.call + log.call)

View File

@ -29,7 +29,7 @@ class TestWEBrickServer < Test::Unit::TestCase
:StopCallback => Proc.new{ stopped += 1 }, :StopCallback => Proc.new{ stopped += 1 },
} }
e = assert_raises(SignalException) do assert_raises(SignalException) do
TestWEBrick.start_server(Echo, config) { |server, addr, port, log| TestWEBrick.start_server(Echo, config) { |server, addr, port, log|
listener = server.listeners.first listener = server.listeners.first