Skip to content

Commit 99d1bdd

Browse files
author
Kevin Paulisse
committed
Merge branch 'kpaulisse-ignore-kill-failures' into kpaulisse-file-compare-environments-production
2 parents 5c48f53 + 60e51a6 commit 99d1bdd

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

spec/octocatalog-diff/support/httparty/ssl_test_server.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ def start
3030

3131
def stop
3232
if @child_pid.is_a?(Fixnum)
33-
Process.kill('TERM', @child_pid)
34-
Process.wait
33+
begin
34+
Process.kill('TERM', @child_pid)
35+
Process.wait
36+
rescue Errno::ESRCH
37+
# If we get #<Errno::ESRCH: No such process>, then there is nothing
38+
# that needs to be stopped. We don't have to fail the test if this occurs.
39+
end
3540
end
3641
end
3742

0 commit comments

Comments
 (0)