diff options
author | Phil Dibowitz <phil@ipom.com> | 2014-03-18 15:44:59 -0700 |
---|---|---|
committer | Phil Dibowitz <phil@ipom.com> | 2014-04-01 10:44:44 -0700 |
commit | 5f8fbd346f44c978b597246a78bbc6b91253a02c (patch) | |
tree | 56ad36a7ac1b7ce4cd2f88b433d7b71917a0098b /spec/unit/application | |
parent | 932d7656ff4d8afcb672359b1d622d64a4adc15e (diff) | |
download | chef-5f8fbd346f44c978b597246a78bbc6b91253a02c.tar.gz |
[11] Don't catch SIGTERM if not in daemon mode
This doens't make sense if not in daemon mode.
Diffstat (limited to 'spec/unit/application')
-rw-r--r-- | spec/unit/application/client_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index f57fd6875a..90a468b0a2 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -128,8 +128,10 @@ end describe Chef::Application::Client, "run_application", :unix_only do before(:each) do + Chef::Config[:daemonize] = true @pipe = IO.pipe @app = Chef::Application::Client.new + Chef::Daemon.stub(:daemonize).and_return(true) @app.stub(:run_chef_client) do @pipe[1].puts 'started' sleep 1 |