diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-11-04 16:49:46 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-11-04 16:49:46 -0800 |
commit | 3cacd81164484bdd13cc1405e6f32331474929c3 (patch) | |
tree | 69884d05035219341528ed309b9309b0a77382ce | |
parent | 1d4cc9f9329ed9b0df3791d71f303dafb34423e2 (diff) | |
download | ohai-speedup.tar.gz |
Speedup the slowest spec by running fewer pluginsspeedup
This spec runs the entire Ohai suite, which can take a bit of time. let's disable the slowest stuff to speed it up a bit.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/system_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/system_spec.rb b/spec/unit/system_spec.rb index 9d02f1e7..a7ea66da 100644 --- a/spec/unit/system_spec.rb +++ b/spec/unit/system_spec.rb @@ -407,6 +407,8 @@ describe "Ohai::System" do E it "runs all the plugins" do + # disable a few slow running plugins + Ohai.config[:disabled_plugins] = [:Packages, :Virtualbox, :Ruby] ohai.run_additional_plugins(@plugins_directory) expect(ohai.data[:canteloupe][:english][:version]).to eq(2014) expect(ohai.data[:canteloupe][:french][:version]).to eq(2012) |