Skip to content

Commit 697414d

Browse files
ono-maxko1
authored andcommitted
Terminate a test early when it fails
Currently the test framework waits 15 seconds and then terminates if a test fails. The reason for waiting 15 seconds is `kill_remote_debuggee` is called without raising `Test::Unit::AssertionFailedError`. We need to raise `Test::Unit::AssertionFailedError` on all modes when a test fails.
1 parent 855772d commit 697414d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support/console_test_case.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def debug_code(program, remote: true, &test_steps)
9898

9999
th.each do |t|
100100
if fail_msg = t.join.value
101-
th.each(&:kill)
101+
th.each{|t| t.raise Test::Unit::AssertionFailedError}
102102
flunk fail_msg
103103
end
104104
end

0 commit comments

Comments
 (0)