Moved to system() for avoid broken pipe issues.

This commit is contained in:
Martin Edenhofer 2016-05-27 11:45:48 +02:00
parent 249caa122a
commit c4167663fd
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ class Observer::AppVersionRestartJob
end end
def perform def perform
output = `#{@cmd}` system(@cmd)
Rails.logger.info "CMD: #{@cmd} -> #{output}" Rails.logger.info "execute CMD: #{@cmd}"
end end
end end

View file

@ -72,7 +72,7 @@ class AdminObjectManagerTest < TestCase
) )
watch_for_disappear( watch_for_disappear(
css: '.modal', css: '.modal',
timeout: 26, timeout: 120,
) )
sleep 5 sleep 5
watch_for( watch_for(
@ -137,7 +137,7 @@ class AdminObjectManagerTest < TestCase
) )
watch_for_disappear( watch_for_disappear(
css: '.modal', css: '.modal',
timeout: 26, timeout: 120,
) )
sleep 5 sleep 5
watch_for( watch_for(