diff options
-rw-r--r-- | lib/chef/application/client.rb | 2 | ||||
-rw-r--r-- | spec/unit/application/client_spec.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index cc734732bb..7f0a39782a 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -363,7 +363,7 @@ class Chef::Application::Client < Chef::Application end def test_signal - client_sleep(0) + @signal = interval_sleep(0) end def time_to_sleep diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 1ff82453bf..ee91e67256 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -286,6 +286,7 @@ describe Chef::Application::Client, "run_application", :unix_only do end it "shouldn't sleep when sent USR1" do + @app.stub(:interval_sleep).with(0).and_call_original pid = fork do @app.run_application end |