Commit 0a1eae69 authored by Boris Bügling's avatar Boris Bügling

[Executable] Increase sleep time.

parent 065676b1
...@@ -87,7 +87,7 @@ module Pod ...@@ -87,7 +87,7 @@ module Pod
o.flush o.flush
e.flush e.flush
sleep(0.01) sleep(0.1)
status status
end end
......
...@@ -22,10 +22,10 @@ module Pod ...@@ -22,10 +22,10 @@ module Pod
it "doesn't hang when the spawned process forks a zombie process with the same STDOUT and STDERR" do it "doesn't hang when the spawned process forks a zombie process with the same STDOUT and STDERR" do
cmd = ['-e', <<-RB] cmd = ['-e', <<-RB]
Process.fork { Process.daemon(nil, true); sleep(2) } Process.fork { Process.daemon(nil, true); sleep(4) }
puts 'out' puts 'out'
RB RB
Timeout.timeout(1) do Timeout.timeout(2) do
Executable.execute_command('ruby', cmd, true).should == "out\n" Executable.execute_command('ruby', cmd, true).should == "out\n"
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment