diff options
author | Tim Smith <tsmith@chef.io> | 2017-04-03 14:48:10 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-04-03 14:51:02 -0700 |
commit | 1441340124ede8dec7373d858fe33c70bac6f613 (patch) | |
tree | 58d2ec6943eac13f5ef68ba492c401a7f77e45c3 | |
parent | d1823215f180287ca4705bafcb892ea4fdb0ddeb (diff) | |
download | ohai-1441340124ede8dec7373d858fe33c70bac6f613.tar.gz |
Fix specs for the timeouttimeouts
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/plugins/scala_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/scala_spec.rb b/spec/unit/plugins/scala_spec.rb index 8831e712..c8f8c3eb 100644 --- a/spec/unit/plugins/scala_spec.rb +++ b/spec/unit/plugins/scala_spec.rb @@ -33,7 +33,7 @@ describe Ohai::System, "plugin scala" do .with("scala -version") .and_return(mock_shell_out(0, "", scala_out)) allow(plugin).to receive(:shell_out) - .with("sbt --version") + .with("sbt --version", { :timeout => 5 }) .and_return(mock_shell_out(0, sbt_out, "")) end @@ -80,7 +80,7 @@ describe Ohai::System, "plugin scala" do .and_return(mock_shell_out(0, "", scala_out)) allow(plugin).to receive(:shell_out) - .with("sbt --version") + .with("sbt --version", { :timeout => 5 }) .and_raise( Ohai::Exceptions::Exec ) plugin.run end |