From c4167663fd92b728833aac17039106c7aa3ffd00 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 27 May 2016 11:45:48 +0200 Subject: [PATCH] Moved to system() for avoid broken pipe issues. --- app/models/observer/app_version_restart_job.rb | 4 ++-- test/browser/admin_object_manager_test.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/observer/app_version_restart_job.rb b/app/models/observer/app_version_restart_job.rb index a30f6c531..a98c95cf8 100644 --- a/app/models/observer/app_version_restart_job.rb +++ b/app/models/observer/app_version_restart_job.rb @@ -4,7 +4,7 @@ class Observer::AppVersionRestartJob end def perform - output = `#{@cmd}` - Rails.logger.info "CMD: #{@cmd} -> #{output}" + system(@cmd) + Rails.logger.info "execute CMD: #{@cmd}" end end diff --git a/test/browser/admin_object_manager_test.rb b/test/browser/admin_object_manager_test.rb index b429d9dec..d8347882e 100644 --- a/test/browser/admin_object_manager_test.rb +++ b/test/browser/admin_object_manager_test.rb @@ -72,7 +72,7 @@ class AdminObjectManagerTest < TestCase ) watch_for_disappear( css: '.modal', - timeout: 26, + timeout: 120, ) sleep 5 watch_for( @@ -137,7 +137,7 @@ class AdminObjectManagerTest < TestCase ) watch_for_disappear( css: '.modal', - timeout: 26, + timeout: 120, ) sleep 5 watch_for(