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:57:34 -0800 |
commit | 1ad7ec792ecec0bb384415068dbfcf39681e49a9 (patch) | |
tree | d083ce1463edfd505109956bd37665c9d31ad310 | |
parent | 1d4cc9f9329ed9b0df3791d71f303dafb34423e2 (diff) | |
download | ohai-1ad7ec792ecec0bb384415068dbfcf39681e49a9.tar.gz |
Speedup the slowest spec by running fewer plugins
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..1e72c2c7 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] = %i{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) |