Skip to content

Commit

Permalink
Terminate a test early when it fails
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ono-max authored and ko1 committed May 5, 2023
1 parent 855772d commit 697414d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/console_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def debug_code(program, remote: true, &test_steps)

th.each do |t|
if fail_msg = t.join.value
th.each(&:kill)
th.each{|t| t.raise Test::Unit::AssertionFailedError}
flunk fail_msg
end
end
Expand Down

0 comments on commit 697414d

Please sign in to comment.