diff options
author | Bryan McLellan <btm@opscode.com> | 2012-02-09 12:19:03 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-02-09 12:19:03 -0800 |
commit | f0d170e349de7d86bfa7541ee8f4bbb95bab8b85 (patch) | |
tree | d3267601429a3107f67a6af36b3e2639c91abd89 | |
parent | bfdc68e9f1212659f25daa23fd30d1f14540ae12 (diff) | |
download | chef-f0d170e349de7d86bfa7541ee8f4bbb95bab8b85.tar.gz |
CHEF-2916: Mrr. Try increasing All The Timeouts. This is like the ring toss game at the fair.
-rw-r--r-- | chef/spec/unit/mixin/command_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/spec/unit/mixin/command_spec.rb b/chef/spec/unit/mixin/command_spec.rb index d3da0e35e5..d6dd0483ab 100644 --- a/chef/spec/unit/mixin/command_spec.rb +++ b/chef/spec/unit/mixin/command_spec.rb @@ -49,7 +49,7 @@ describe Chef::Mixin::Command do end it "should end when the child process reads from STDIN and a block is given" do - lambda {Timeout.timeout(2) do + lambda {Timeout.timeout(4) do popen4("ruby -e 'while gets; end'", :waitlast => true) do |pid, stdin, stdout, stderr| (1..5).each { |i| stdin.puts "#{i}" } end @@ -60,7 +60,7 @@ describe Chef::Mixin::Command do describe "when a process detaches but doesn't close STDOUT and STDERR [CHEF-584]" do it "returns immediately after the first child process exits" do - lambda {Timeout.timeout(2) do + lambda {Timeout.timeout(4) do pid, stdin,stdout,stderr = nil,nil,nil,nil evil_forker="exit if fork; 10.times { sleep 1}" popen4("ruby -e '#{evil_forker}'") do |pid,stdin,stdout,stderr| |