diff options
Diffstat (limited to 'spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb')
-rw-r--r-- | spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb b/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb index 43176e38b2b..2b3a267991c 100644 --- a/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb +++ b/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb @@ -54,7 +54,10 @@ describe Gitlab::Cluster::Mixins::UnicornHttpServer do yield(process.pid) ensure - Process.kill(:KILL, process.pid) unless process.eof? + begin + Process.kill(:KILL, process.pid) + rescue Errno::ESRCH + end end end end |