From abfc0b18d50c373b5013103768286f39a696d600 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 May 2016 00:05:32 +0000 Subject: 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 --- test/webrick/utils.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/webrick/utils.rb b/test/webrick/utils.rb index ce667df355..92353908be 100644 --- a/test/webrick/utils.rb +++ b/test/webrick/utils.rb @@ -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 -- cgit v1.2.3