From a14367e9e498fedd3db8d6b8124a3fcda8994dc6 Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Fri, 5 Apr 2024 02:51:49 +1000 Subject: [PATCH] Use `exit!` instead of `exit` (#602) We found that using `exit` here would conflict with the `debug` gem on Ruby 3.2. It would hang and never exit when tests completed, similar to this issue: https://github.com/ruby/debug/issues/336#issuecomment-968349278 --- lib/teaspoon/utility.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/teaspoon/utility.rb b/lib/teaspoon/utility.rb index d8d95d82..cc5ba12a 100644 --- a/lib/teaspoon/utility.rb +++ b/lib/teaspoon/utility.rb @@ -7,7 +7,7 @@ def self.root def self.abort(message = nil, code = 1) STDOUT.print("#{message}\n") if message - exit(code) + exit!(code) end module Utility