Skip to content

Commit

Permalink
Stop Puma::Server after each puma test (#2038)
Browse files Browse the repository at this point in the history
Otherwise the Puma server threads would linger around and cause problems,
especially in JRuby.
  • Loading branch information
st0012 authored Apr 28, 2023
1 parent a466ec8 commit bd28bf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentry-ruby/spec/isolated/puma_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def new_connection
end

def close
@server.stop(true)
@ios.each { |io| io.close }
end
end
Expand Down

0 comments on commit bd28bf6

Please sign in to comment.