lib/grntest/worker.rb in grntest-1.3.5 vs lib/grntest/worker.rb in grntest-1.3.6
- old
+ new
@@ -45,10 +45,14 @@
def on_test_failure(name)
@failed_tests << name
end
+ def cancel_test_failure(name)
+ @failed_tests.delete(name)
+ end
+
def on_test_leak(name)
@n_leaked_tests += 1
end
def on_test_omission
@@ -177,9 +181,10 @@
runner = TestRunner.new(@tester, self)
return true if runner.run
if n < @tester.n_retries and not interruptted?
+ @result.cancel_test_failure(test_name)
@test_suites_result.n_total_tests += 1
next
end
return false