summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/scala_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/scala_spec.rb')
-rw-r--r--spec/unit/plugins/scala_spec.rb4
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