webrick/utils.rb: suppress messages

* test/webrick/utils.rb (TestWEBrick#start_server): suppress
  progress messages from WEBrick::Utils#create_self_signed_cert.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-05-09 00:05:32 +00:00
Родитель 4a46404a71
Коммит abfc0b18d5
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -37,12 +37,13 @@ module TestWEBrick
log_ary = []
access_log_ary = []
log = proc { "webrick log start:\n" + (log_ary+access_log_ary).join.gsub(/^/, " ").chomp + "\nwebrick log end" }
server = klass.new({
config = ({
:BindAddress => "127.0.0.1", :Port => 0,
:ServerType => Thread,
:Logger => WEBrick::Log.new(log_ary, WEBrick::BasicLog::WARN),
:AccessLog => [[access_log_ary, ""]]
}.update(config))
server = capture_io {break klass.new(config)}
server_thread = server.start
server_thread2 = Thread.new {
server_thread.join