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 | 323b48523820b23c4d09f2cefc66309ce64d6aea (patch) | |
| tree | 33d78a1b8a9499f8464861040e537d56f40b4927 /lib | |
| parent | 3f8e01aac08e4a6d4b5352780359345e253e463b (diff) | |
Removed reference to timeout for tests.
This was an invalid comment, the timeout related to HTTP-fetches.
Diffstat (limited to 'lib')
| -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 | 
