From b6900d7350e68e7272a2959fe63671f86772948e Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@oriontransfer.co.nz>
Date: Mon, 3 Aug 2020 22:10:41 +1200
Subject: [PATCH 4/7] Increase timeouts.
---
spec/daemonizing_spec.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/spec/daemonizing_spec.rb b/spec/daemonizing_spec.rb
index 8ac4439..1ef8f02 100644
--- a/spec/daemonizing_spec.rb
+++ b/spec/daemonizing_spec.rb
@@ -45,7 +45,7 @@ describe 'Daemonizing' do
File.exist?(@server.pid_file).should be_true
@pid = @server.pid
- proc { sleep 0.1 while File.exist?(@server.pid_file) }.should take_less_then(5)
+ proc { sleep 0.1 while File.exist?(@server.pid_file) }.should take_less_then(20)
end
it 'should redirect stdio to a log file' do
@@ -59,7 +59,7 @@ describe 'Daemonizing' do
end
Process.wait(@pid)
# Wait for the file to close and magical stuff to happen
- proc { sleep 0.1 until File.exist?('daemon_test.log') }.should take_less_then(3)
+ proc { sleep 0.1 until File.exist?('daemon_test.log') }.should take_less_then(20)
sleep 0.5
@pid = @server.pid
@@ -153,7 +153,7 @@ describe 'Daemonizing' do
Process.wait(@pid)
- proc { sleep 0.1 while File.exist?(@server.pid_file) }.should take_less_then(10)
+ proc { sleep 0.1 while File.exist?(@server.pid_file) }.should take_less_then(20)
end
it "should ignore if no restart block specified" do
--
2.26.2