From 422dd116ecadd2aef341cf431b87d1e9daca45cd Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 18 Aug 2008 12:12:25 +0100 Subject: Facter fix #1422, no default timeout --- lib/facter/util/resolution.rb | 2 +- spec/unit/util/resolution.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/facter/util/resolution.rb b/lib/facter/util/resolution.rb index 4d0a8d1..19f2c1e 100644 --- a/lib/facter/util/resolution.rb +++ b/lib/facter/util/resolution.rb @@ -67,7 +67,7 @@ class Facter::Util::Resolution @name = name @confines = [] @value = nil - @timeout = 0.5 + @timeout = 0 end # Return the number of confines. diff --git a/spec/unit/util/resolution.rb b/spec/unit/util/resolution.rb index 617b4dc..5ce3d63 100755 --- a/spec/unit/util/resolution.rb +++ b/spec/unit/util/resolution.rb @@ -21,8 +21,8 @@ describe Facter::Util::Resolution do Facter::Util::Resolution.new("yay").should respond_to(:timeout=) end - it "should default to a timeout of 0.5 seconds" do - Facter::Util::Resolution.new("yay").limit.should == 0.5 + it "should default to a timeout of 0 seconds" do + Facter::Util::Resolution.new("yay").limit.should == 0 end it "should provide a 'limit' method that returns the timeout" do -- cgit