We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c48f53 + 60e51a6 commit 99d1bddCopy full SHA for 99d1bdd
1 file changed
spec/octocatalog-diff/support/httparty/ssl_test_server.rb
@@ -30,8 +30,13 @@ def start
30
31
def stop
32
if @child_pid.is_a?(Fixnum)
33
- Process.kill('TERM', @child_pid)
34
- Process.wait
+ begin
+ 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
40
end
41
42
0 commit comments