Skip to content

Commit

Permalink
Use hard exit! in TimeoutAction
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Nov 27, 2023
1 parent 38965cb commit 9f83eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mspec/runner/actions/timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def start

show_backtraces
if MSpec.subprocesses.empty?
exit 2
exit! 2
else
# Do not exit but signal the subprocess so we can get their output
MSpec.subprocesses.each do |pid|
Expand Down Expand Up @@ -81,7 +81,7 @@ def after(state = nil)

if @fail
STDERR.puts "\n\nThe last example #{@error_message}. See above for the subprocess stacktrace."
exit 2
exit! 2
end
end

Expand Down

0 comments on commit 9f83eea

Please sign in to comment.