Skip to content

Commit

Permalink
CHEF-2916: Mrr. Try increasing All The Timeouts. This is like the rin…
Browse files Browse the repository at this point in the history
…g toss game at the fair.
  • Loading branch information
btm committed Feb 9, 2012
1 parent bfdc68e commit f0d170e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chef/spec/unit/mixin/command_spec.rb
Expand Up @@ -49,7 +49,7 @@
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
Expand All @@ -60,7 +60,7 @@
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|
Expand Down

0 comments on commit f0d170e

Please sign in to comment.