Skip to content

Commit 130205b

Browse files
committed
increase default command timeout to 10min
1 parent 61d5a44 commit 130205b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎chef/lib/chef/shell_out.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Chef
4040
class ShellOut
4141
READ_WAIT_TIME = 0.01
4242
READ_SIZE = 4096
43-
DEFAULT_READ_TIMEOUT = 60
43+
DEFAULT_READ_TIMEOUT = 600
4444
DEFAULT_ENVIRONMENT = {'LC_ALL' => 'C'}
4545

4646
if RUBY_PLATFORM =~ /mswin|mingw32|windows/

‎chef/spec/unit/shell_out_spec.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
@shell_cmd.gid.should == a_group.gid
7676
end
7777

78-
it "has a timeout defaulting to 60 seconds" do
79-
Chef::ShellOut.new('foo').timeout.should == 60
78+
it "has a timeout defaulting to 600 seconds" do
79+
Chef::ShellOut.new('foo').timeout.should == 600
8080
end
8181

8282
it "sets the read timeout" do

0 commit comments

Comments
 (0)