From bd28bf6fab99ed1c1cd44f418f28b65435b57d2d Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Fri, 28 Apr 2023 11:21:06 +0100 Subject: [PATCH] Stop Puma::Server after each puma test (#2038) Otherwise the Puma server threads would linger around and cause problems, especially in JRuby. --- sentry-ruby/spec/isolated/puma_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/sentry-ruby/spec/isolated/puma_spec.rb b/sentry-ruby/spec/isolated/puma_spec.rb index 663352330..c5b99a7fc 100644 --- a/sentry-ruby/spec/isolated/puma_spec.rb +++ b/sentry-ruby/spec/isolated/puma_spec.rb @@ -23,6 +23,7 @@ def new_connection end def close + @server.stop(true) @ios.each { |io| io.close } end end