sleep longer after loading scripts
This commit is contained in:
@@ -36,6 +36,7 @@ describe Foreman::Process do
|
|||||||
def run_file(executable, code)
|
def run_file(executable, code)
|
||||||
file = File.open("#{basedir}/script", 'w') {|it| it << code }
|
file = File.open("#{basedir}/script", 'w') {|it| it << code }
|
||||||
run "#{executable} #{file.path}"
|
run "#{executable} #{file.path}"
|
||||||
|
sleep 1
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'options' do
|
context 'options' do
|
||||||
@@ -98,7 +99,6 @@ describe Foreman::Process do
|
|||||||
trap "TERM", "IGNORE"
|
trap "TERM", "IGNORE"
|
||||||
loop { sleep 1 }
|
loop { sleep 1 }
|
||||||
CODE
|
CODE
|
||||||
sleep 1 # wait for ruby to start
|
|
||||||
subject.should be_alive
|
subject.should be_alive
|
||||||
subject.kill 'TERM'
|
subject.kill 'TERM'
|
||||||
subject.should be_alive
|
subject.should be_alive
|
||||||
|
|||||||
Reference in New Issue
Block a user