summaryrefslogtreecommitdiff
path: root/test/webrick/utils.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-09 00:05:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-09 00:05:32 +0000
commitabfc0b18d50c373b5013103768286f39a696d600 (patch)
tree08cc0454bb7032d40df6475e79eb8399c2960958 /test/webrick/utils.rb
parent4a46404a71a6a2213fc204078df9313dfe9258f1 (diff)
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
Diffstat (limited to 'test/webrick/utils.rb')
-rw-r--r--test/webrick/utils.rb3
1 files changed, 2 insertions, 1 deletions
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