sleep longer after loading scripts

This commit is contained in:
David Dollar
2012-01-29 10:03:03 -05:00
parent 9d2382a2d2
commit 083efe3ae9
+1 -1
View File
@@ -36,6 +36,7 @@ describe Foreman::Process do
def run_file(executable, code)
file = File.open("#{basedir}/script", 'w') {|it| it << code }
run "#{executable} #{file.path}"
sleep 1
end
context 'options' do
@@ -98,7 +99,6 @@ describe Foreman::Process do
trap "TERM", "IGNORE"
loop { sleep 1 }
CODE
sleep 1 # wait for ruby to start
subject.should be_alive
subject.kill 'TERM'
subject.should be_alive