diff options
author | danielsdeleo <dan@getchef.com> | 2014-06-11 08:42:55 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-06-11 08:42:55 -0700 |
commit | 23e5b59e4e36b044a2bea289efc97e00e6d1ddff (patch) | |
tree | 0c289e3f31a039810c7bd831caf623859031949f | |
parent | 73829b21e61b13bb42d9e3243d1f0b1e01944ed7 (diff) | |
download | chef-23e5b59e4e36b044a2bea289efc97e00e6d1ddff.tar.gz |
Fix apt_spec test to expect custom timeout for apt-cache command
-rw-r--r-- | spec/unit/provider/package/apt_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/package/apt_spec.rb b/spec/unit/provider/package/apt_spec.rb index acd772f279..245cd3aff8 100644 --- a/spec/unit/provider/package/apt_spec.rb +++ b/spec/unit/provider/package/apt_spec.rb @@ -194,7 +194,7 @@ SHOWPKG_STDOUT it "raises an exception if a source is specified (CHEF-5113)" do @new_resource.source "pluto" @provider.define_resource_requirements - @provider.should_receive(:shell_out!).with("apt-cache policy irssi").and_return(@shell_out) + @provider.should_receive(:shell_out!).with("apt-cache policy irssi", {:timeout=>900}).and_return(@shell_out) expect { @provider.run_action(:install) }.to raise_error(Chef::Exceptions::Package) end end |