diff options
| author | Steve Kemp <steve@steve.org.uk> | 2015-02-18 08:33:24 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2015-02-18 08:33:24 +0000 | 
| commit | 4a675e83201d04de805bbce50ae4c92ac4117fe4 (patch) | |
| tree | f45ff7aba20e1f8f82cc3160302705ab96690e1e | |
| parent | e5409a45b414f7fdc637ddc73cb6ca82aa3da083 (diff) | |
Removed reference to timeout for tests.
This was an invalid comment, the timeout related to HTTP-fetches.
| -rw-r--r-- | lib/custodian/parser.rb | 17 | 
1 files 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 @@ -43,11 +43,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.      #      attr_reader :jobs @@ -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 | 
