diff options
| author | Pete Higgins <pete@peterhiggins.org> | 2020-07-22 12:33:14 -0700 |
|---|---|---|
| committer | Pete Higgins <pete@peterhiggins.org> | 2020-07-22 12:56:34 -0700 |
| commit | 76123dbbdd9365b2f2b6f20b0e4158dcdf12599c (patch) | |
| tree | e793e5098bfb0e2877b5bd4df07fa031f6e74b01 /spec/unit | |
| parent | 2dffddb40952baf754de923e6c1fb7b1ccdce208 (diff) | |
| download | chef-76123dbbdd9365b2f2b6f20b0e4158dcdf12599c.tar.gz | |
Set log level to :fatal in test to prevent excess logging.fix-excess-logging-in-functional-test
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/unit')
| -rw-r--r-- | spec/unit/application_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index 4e77084644..aa916d0793 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -26,7 +26,6 @@ describe Chef::Application do allow(@app).to receive(:trap) allow(Dir).to receive(:chdir).and_return(0) allow(@app).to receive(:reconfigure) - Chef::Log.init(STDERR) end after do @@ -253,6 +252,10 @@ describe Chef::Application do end context "when log_level is not set" do + before do + Chef::Config.delete(:log_level) + end + it_behaves_like "log_level_is_auto" end |
