Kouhei Sutou
null+****@clear*****
Thu Mar 12 15:56:10 JST 2015
Kouhei Sutou 2015-03-12 15:56:10 +0900 (Thu, 12 Mar 2015) New Revision: 9958c6a1632910d178fe6025612936bf115d3771 https://github.com/groonga/grntest/commit/9958c6a1632910d178fe6025612936bf115d3771 Message: Increase read timeout for debug Modified files: lib/grntest/executors/http-executor.rb lib/grntest/test-runner.rb Modified: lib/grntest/executors/http-executor.rb (+2 -2) =================================================================== --- lib/grntest/executors/http-executor.rb 2015-03-12 15:53:16 +0900 (4832933) +++ lib/grntest/executors/http-executor.rb 2015-03-12 15:56:10 +0900 (f266687) @@ -22,11 +22,11 @@ require "grntest/executors/base-executor" module Grntest module Executors class HTTPExecutor < BaseExecutor - def initialize(host, port, context) + def initialize(host, port, context, options={}) super(context) @host = host @port = port - @read_timeout = 3 + @read_timeout = options[:read_timeout] || 3 end def send_command(command) Modified: lib/grntest/test-runner.rb (+5 -1) =================================================================== --- lib/grntest/test-runner.rb 2015-03-12 15:53:16 +0900 (7409b93) +++ lib/grntest/test-runner.rb 2015-03-12 15:56:10 +0900 (aab9628) @@ -318,10 +318,14 @@ call chdir("#{context.temporary_directory_path}") spawn_options) pid = nil shutdown_wait_timeout = 5 + options = {} + if****@teste***** + options[:read_timeout] = 60 * 10 + end begin pid = Process.spawn(env, *command_line, spawn_options) begin - executor = Executors::HTTPExecutor.new(host, port, context) + executor = Executors::HTTPExecutor.new(host, port, context, options) begin executor.ensure_groonga_ready rescue -------------- next part -------------- HTML����������������������������...Download