mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
4a46404a71
commit
abfc0b18d5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue