[Pkg-puppet-devel] [facter] 215/352: (fact-273) Add expectation for Facter.warn on timeouts

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit 5de81029b1cc77cbc855248a978ec74fb749e2d9
Author: Kylo Ginsberg <kylo at puppetlabs.com>
Date:   Wed Feb 5 13:50:57 2014 -0800

    (fact-273) Add expectation for Facter.warn on timeouts
---
 spec/unit/core/resolvable_spec.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/spec/unit/core/resolvable_spec.rb b/spec/unit/core/resolvable_spec.rb
index a237ed3..e2ed98e 100644
--- a/spec/unit/core/resolvable_spec.rb
+++ b/spec/unit/core/resolvable_spec.rb
@@ -51,6 +51,7 @@ describe Facter::Core::Resolvable do
     end
 
     it "returns nil if the timeout was reached" do
+      Facter.expects(:warn).with("Timed out seeking value for resolvable")
       Timeout.expects(:timeout).raises Timeout::Error
 
       expect(subject.value).to be_nil
@@ -61,6 +62,7 @@ describe Facter::Core::Resolvable do
       Thread.expects(:new).yields
       Process.expects(:waitall)
 
+      Facter.expects(:warn).with("Timed out seeking value for resolvable")
       Timeout.expects(:timeout).raises Timeout::Error
 
       subject.value

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list