Skip to content

Commit 4434a32

Browse files
committed
Use hard exit! in TimeoutAction
1 parent f1f79ea commit 4434a32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/mspec/lib/mspec/runner/actions/timeout.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def start
4848

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

8282
if @fail
8383
STDERR.puts "\n\nThe last example #{@error_message}. See above for the subprocess stacktrace."
84-
exit 2
84+
exit! 2
8585
end
8686
end
8787

0 commit comments

Comments
 (0)