diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-27 15:36:29 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-27 15:36:29 -0800 |
commit | fb95d688b483700d0c62b6a6960cd2b614121a7e (patch) | |
tree | 6958826f651f9d645569f5f996d1ce5ca628f13c | |
parent | 716728847e8b67614c8590cadecdaea21c192751 (diff) | |
download | chef-fb95d688b483700d0c62b6a6960cd2b614121a7e.tar.gz |
Update windows_service_spec to use 2 hour timeoutjdm/win-service
-rw-r--r-- | spec/unit/windows_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/windows_service_spec.rb b/spec/unit/windows_service_spec.rb index 71ed8bf0de..bc5e781c03 100644 --- a/spec/unit/windows_service_spec.rb +++ b/spec/unit/windows_service_spec.rb @@ -41,7 +41,7 @@ describe "Chef::Application::WindowsService", :windows_only do end context 'when running chef-client' do - it "passes config params to new process with a default timeout of 1200 seconds (20 minutes)" do + it "passes config params to new process with a default timeout of 2 hours (7200 seconds)" do Chef::Config.merge!({:log_location => tempfile.path, :config_file => "test_config_file", :log_level => :info}) expect(instance).to receive(:configure_chef).twice instance.service_init @@ -49,7 +49,7 @@ describe "Chef::Application::WindowsService", :windows_only do allow(instance.instance_variable_get(:@service_signal)).to receive(:wait) allow(instance).to receive(:state).and_return(4) expect(instance).to receive(:run_chef_client).and_call_original - expect(instance).to receive(:shell_out).with("chef-client --no-fork -c test_config_file -L #{tempfile.path}", {:timeout => 1200}).and_return(shell_out_result) + expect(instance).to receive(:shell_out).with("chef-client --no-fork -c test_config_file -L #{tempfile.path}", {:timeout => 7200}).and_return(shell_out_result) instance.service_main tempfile.unlink end |