summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@googlemail.com>2008-08-18 12:12:25 +0100
committerPaul Nasrat <pnasrat@googlemail.com>2008-08-18 12:14:37 +0100
commit422dd116ecadd2aef341cf431b87d1e9daca45cd (patch)
treeac940cb7fe75153f091ed37f8da3ce4caef45382
parent590a3d003db2f2496a37d021a45e8d7a2c6d9583 (diff)
downloadfacter-422dd116ecadd2aef341cf431b87d1e9daca45cd.tar.gz
facter-422dd116ecadd2aef341cf431b87d1e9daca45cd.tar.xz
facter-422dd116ecadd2aef341cf431b87d1e9daca45cd.zip
Facter fix #1422, no default timeout
-rw-r--r--lib/facter/util/resolution.rb2
-rwxr-xr-xspec/unit/util/resolution.rb4
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