Skip to content

Commit 60e51a6

Browse files
author
Kevin Paulisse
committed
Ignore any kill errors for the testing SSL server
1 parent 884a6f6 commit 60e51a6

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)