summaryrefslogtreecommitdiff
path: root/spec/unit/application/client_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2014-04-23 13:37:34 -0700
committerdanielsdeleo <dan@getchef.com>2014-04-24 09:49:52 -0700
commita331b0d174292d01ae118885678946661ad7a218 (patch)
tree0c998b1699bb2fa83fe00adb108bbfa6eca6148d /spec/unit/application/client_spec.rb
parent8931e21289f603669658f903de9018aa101b3a4f (diff)
downloadchef-a331b0d174292d01ae118885678946661ad7a218.tar.gz
Configure correct logger to fix logger trap context warnings
Diffstat (limited to 'spec/unit/application/client_spec.rb')
-rw-r--r--spec/unit/application/client_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb
index b3e9858a64..3bc6b97d3d 100644
--- a/spec/unit/application/client_spec.rb
+++ b/spec/unit/application/client_spec.rb
@@ -134,6 +134,8 @@ describe Chef::Application::Client, "run_application", :unix_only do
Chef::Config[:daemonize] = true
@pipe = IO.pipe
@app = Chef::Application::Client.new
+ # Default logger doesn't work correctly when logging from a trap handler.
+ @app.configure_logging
Chef::Daemon.stub(:daemonize).and_return(true)
@app.stub(:run_chef_client) do
@pipe[1].puts 'started'