From 323b48523820b23c4d09f2cefc66309ce64d6aea Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 18 Feb 2015 08:33:24 +0000 Subject: Removed reference to timeout for tests. This was an invalid comment, the timeout related to HTTP-fetches. --- lib/custodian/parser.rb | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index fb35cd5..733d375 100644 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -42,11 +42,6 @@ module Custodian # attr_reader :filename - # - # Timeout period, in seconds, that we encode into test objects. - # - attr_reader :timeout - # # An array of test-objects, which are subclasses of our test-factory. # @@ -58,27 +53,25 @@ module Custodian # Constructor # def initialize( ) - - @MACROS = Hash.new() @jobs = Array.new() - @timeout = 60 - end # - # Retrieve a HTTP/HTTPS page from the web, which is used for macro-expansion. + # Retrieve a HTTP/HTTPS page from the web, for macro-expansion. # def getURL (uri_str) begin uri_str = 'http://' + uri_str unless uri_str.match(/^http/) url = URI.parse(uri_str) http = Net::HTTP.new(url.host, url.port) - http.open_timeout = @timeout - http.read_timeout = @timeout + + # timeout for the HTTP-fetch, in seconds. + http.open_timeout = 60 + http.read_timeout = 60 if (url.scheme == "https") http.use_ssl = true -- cgit v1.2.1